/* auth.css - تنسيقات نظام المصادقة */

@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");

:root {
    /* Theme 1 - Default Dark Theme */
    --auth-theme1-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --auth-theme1-container: rgba(30, 39, 73, 0.95);
    --auth-theme1-text: #e0e6ed;
    --auth-theme1-input-bg: rgba(14, 0, 71, 0.5);
    --auth-theme1-input-focus: rgba(14, 0, 71, 0.7);
    --auth-theme1-button: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --auth-theme1-button-shadow: rgba(79, 172, 254, 0.3);

    /* Theme 2 - Purple Dream */
    --auth-theme2-bg: linear-gradient(135deg, #2d1b69 0%, #4a1b69 50%, #6b1b69 100%);
    --auth-theme2-container: rgba(45, 27, 105, 0.95);
    --auth-theme2-text: #e0e6ed;
    --auth-theme2-input-bg: rgba(45, 27, 105, 0.5);
    --auth-theme2-input-focus: rgba(45, 27, 105, 0.7);
    --auth-theme2-button: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%);
    --auth-theme2-button-shadow: rgba(142, 45, 226, 0.3);

    /* Theme 3 - Ocean Breeze */
    --auth-theme3-bg: linear-gradient(135deg, #1b4b69 0%, #2d5f8b 50%, #3d739b 100%);
    --auth-theme3-container: rgba(27, 75, 105, 0.95);
    --auth-theme3-text: #e0e6ed;
    --auth-theme3-input-bg: rgba(27, 75, 105, 0.5);
    --auth-theme3-input-focus: rgba(27, 75, 105, 0.7);
    --auth-theme3-button: linear-gradient(135deg, #00b4db 0%, #0083b0 100%);
    --auth-theme3-button-shadow: rgba(0, 180, 219, 0.3);

    /* Theme 4 - Saudi Theme */
    --auth-theme4-bg: linear-gradient(135deg, #006837 0%, #00542f 50%, #004027 100%);
    --auth-theme4-container: rgba(0, 76, 74, 16.95);
    --auth-theme4-text: #ffffff;
    --auth-theme4-input-bg: rgba(0, 84, 45, 0.5);
    --auth-theme4-input-focus: rgba(0, 84, 45, 0.7);
    --auth-theme4-button: linear-gradient(135deg, #00983c 0%, #00bd0f 100%);
    --auth-theme4-button-shadow: rgba(255, 255, 255, 0.3);

    /* Theme 5 - Light Theme */
    --auth-theme5-bg: linear-gradient(135deg, #f5f5f5 0%, #ebebeb 50%, #e0e0e0 100%);
    --auth-theme5-container: rgba(255, 255, 255, 0.95);
    --auth-theme5-text: #333333;
    --auth-theme5-input-bg: rgba(255, 255, 255, 0.5);
    --auth-theme5-input-focus: rgba(255, 255, 255, 0.7);
    --auth-theme5-button: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
    --auth-theme5-button-shadow: rgba(33, 147, 176, 0.3);

    /* Theme 6 - Foundation Day */
    --auth-theme6-bg: linear-gradient(135deg, #ba7747 0%, #a66333 50%, #924f1f 100%);
    --auth-theme6-container: rgba(35, 31, 32, 0.95);
    --auth-theme6-text: #f4eada;
    --auth-theme6-input-bg: rgba(35, 31, 32, 0.5);
    --auth-theme6-input-focus: rgba(35, 31, 32, 0.7);
    --auth-theme6-button: linear-gradient(135deg, #ba7747 0%, #e76a58 100%);
    --auth-theme6-button-shadow: rgba(186, 119, 71, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
h2{
    color:black;
    font-size:1.3rem;
}
body {
    font-family: "Rubik", sans-serif;
    background: var(--auth-theme1-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--auth-theme1-text);
    transition: background 0.3s ease;
}

/* Theme Classes */
body.theme-1 {
    background: var(--auth-theme1-bg);
    color: var(--auth-theme1-text);
}

body.theme-2 {
    background: var(--auth-theme2-bg);
    color: var(--auth-theme2-text);
}

body.theme-3 {
    background: var(--auth-theme3-bg);
    color: var(--auth-theme3-text);
}

body.theme-4 {
    background: var(--auth-theme4-bg);
    color: var(--auth-theme4-text);
}

body.theme-5 {
    background: var(--auth-theme5-bg);
    color: var(--auth-theme5-text);
}

body.theme-6 {
    background: var(--auth-theme6-bg);
    color: var(--auth-theme6-text);
}

.auth-container {
    max-width: 450px;
    width: 100%;
    background: var(--auth-theme1-container);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

/* Theme Container Styles */
body.theme-1 .auth-container {
    background: var(--auth-theme1-container);
}

body.theme-2 .auth-container {
    background: var(--auth-theme2-container);
}

body.theme-3 .auth-container {
    background: var(--auth-theme3-container);
}

body.theme-4 .auth-container {
    background: var(--auth-theme4-container);
    border: 2px solid #ffffff;
}

body.theme-5 .auth-container {
    background: var(--auth-theme5-container);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

body.theme-6 .auth-container {
    background: var(--auth-theme6-container);
    border: 2px solid #ba7747;
}

/* Theme Input Styles */
body.theme-1 .form-group input {
    background: var(--auth-theme1-input-bg);
    color: var(--auth-theme1-text);
}

body.theme-2 .form-group input {
    background: var(--auth-theme2-input-bg);
    color: var(--auth-theme2-text);
}

body.theme-3 .form-group input {
    background: var(--auth-theme3-input-bg);
    color: var(--auth-theme3-text);
}

body.theme-4 .form-group input {
    background: var(--auth-theme4-input-bg);
    color: var(--auth-theme4-text);
}

body.theme-5 .form-group input {
    background: var(--auth-theme5-input-bg);
    color: var(--auth-theme5-text);
}

body.theme-5 .form-group label {
    color: var(--auth-theme5-text);
}

body.theme-6 .form-group input {
    background: var(--auth-theme6-input-bg);
    color: var(--auth-theme6-text);
}

/* Theme Button Styles */
body.theme-1 .submit-btn {
    background: var(--auth-theme1-button);
    box-shadow: 0 10px 20px var(--auth-theme1-button-shadow);
}

body.theme-2 .submit-btn {
    background: var(--auth-theme2-button);
    box-shadow: 0 10px 20px var(--auth-theme2-button-shadow);
}

body.theme-3 .submit-btn {
    background: var(--auth-theme3-button);
    box-shadow: 0 10px 20px var(--auth-theme3-button-shadow);
}

body.theme-4 .submit-btn {
    background: var(--auth-theme4-button);
    color: #ffffff;
    box-shadow: 0 10px 20px var(--auth-theme4-button-shadow);
}

body.theme-5 .submit-btn {
    background: var(--auth-theme5-button);
    color: #000000;
    box-shadow: 0 10px 20px var(--auth-theme5-button-shadow);
}

body.theme-6 .submit-btn {
    background: var(--auth-theme6-button);
    color: #ffffff;
    box-shadow: 0 10px 20px var(--auth-theme6-button-shadow);
}

/* Theme Text Styles */
body.theme-1 .auth-form h2,
body.theme-1 .logo h1 {
    color: var(--auth-theme1-text);
}

body.theme-2 .auth-form h2,
body.theme-2 .logo h1 {
    color: var(--auth-theme2-text);
}

body.theme-3 .auth-form h2,
body.theme-3 .logo h1 {
    color: var(--auth-theme3-text);
}

body.theme-4 .auth-form h2,
body.theme-4 .logo h1 {
    color: var(--auth-theme4-text);
}

body.theme-5 .auth-form h2,
body.theme-5 .logo h1 {
    color: var(--auth-theme5-text);
}

body.theme-6 .auth-form h2,
body.theme-6 .logo h1 {
    color: var(--auth-theme6-text);
}

.auth-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.logo-icon {
    font-size: 2.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.logo h1 {
    font-size: 1.8rem;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #b0b7c3;
    font-size: 0.9rem;
}

.auth-form {
    position: relative;
    z-index: 1;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #e0e6ed;
    font-size: 1.5rem;
}

.form-description {
    text-align: center;
    color: #b0b7c3;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #b0b7c3;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(14, 0, 71, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #e0e6ed;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4facfe;
    background: rgba(14, 0, 71, 0.7);
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.form-group input::placeholder {
    color: #6b7280;
}

.error-message {
    display: block;
    margin-top: 5px;
    color: #ef4444;
    font-size: 0.8rem;
    min-height: 20px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #b0b7c3;
    font-size: 0.9rem;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.forgot-password {
    color: #4facfe;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #00f2fe;
}

.terms {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #b0b7c3;
    font-size: 0.9rem;
}

.terms a {
    color: #4facfe;
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

.password-strength {
    margin-top: 8px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.password-strength::after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.password-strength.weak::after {
    width: 33%;
    background: #ef4444;
}

.password-strength.medium::after {
    width: 66%;
    background: #f59e0b;
}

.password-strength.strong::after {
    width: 100%;
    background: #10b981;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    text-decoration:none;
    font-family: 'Rubik', sans-serif;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 172, 254, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: #b0b7c3;
    font-size: 0.9rem;
}

.auth-switch a {
    color: #4facfe;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-switch a:hover {
    color: #00f2fe;
}

.message-box {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
    z-index: 10;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.message-box.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.message-box.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

/* Responsive Design */
@media (max-width: 480px) {
    .auth-container {
        padding: 30px 20px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .auth-form h2 {
        font-size: 1.3rem;
    }

    .form-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* تنسيق قسم معلومات المستخدم */
.user-profile {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    max-width: 600px;
    margin: 2rem auto;
}

.profile-content {
    text-align: center;
}

.user-info {
    margin-bottom: 2rem;
}

.user-info h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.premium-status {
    margin: 1rem 0;
    color: black;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.status-badge.premium {
    background-color: #ffd700;
    color: #000;
}

.status-badge.regular {
    background-color: #e0e0e0;
    color: #666;
}

.premium-upgrade {
    background: #f8f9fa;
    border-radius: 13px;
    padding: 0.5rem;
    margin: 0.5rem -21px;
    justify-items: anchor-center;
}

.premium-features {
	font-family:"Rubik", sans-serif !important;
    background: #f8f9fa;
    padding: 0.5rem;
	direction: rtl;
    border-radius: 0.8rem;
    margin-bottom: 2rem;
}

.premium-features h3 {
    color: #333;
    justify-self: anchor-center;
    margin-bottom: 1rem;
}

.premium-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premium-features li {
    margin: 0.8rem 0;
    color: #000000;
}

.premium-btn {
    background-color: #ffd700 !important;
    color: #000 !important;
    text-decoration: none;
    width: 100%;
    padding: 14px;
    text-decoration: none;
    font-family: 'Rubik', sans-serif;
    margin-bottom: 10px;
    /* background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); */
    border: none;
    border-radius: 10px;
    color: #000000;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.premium-btn:hover {
    background-color: #ffed4a !important;
}

.logout-btn {
    background-color: #dc3545 !important;
    color: white !important;
    margin-top: 1rem;
}

.logout-btn:hover {
    background-color: #c82333 !important;
}
