:root {
    --primary-glow: #007aff;
    /* أزرق حيوي للمسات التفاعلية */
    --accent-gold: #d4af37;
    /* ذهبي خفيف للعقارات المميزة (Premium) */
    --bg-main: #fafafa;
    /* بطاقات بيضاء ناصعة */
    --bg-card: #ffff;
    /* خلفية فاتحة مريحة */
    --text-main: #1a1a1b;
    /* نصوص واضحة جداً */
    --text-muted: #666666;
    --glass-border: rgba(0, 122, 255, 0.1);
    --blue-bg: rgba(0, 122, 255, 0.08);
    --text-black: #000;
    --transition: ease all 0.3s;
}

body[data-theme="dark"] {
    --primary-glow: #007aff;
    --accent-gold: #e6c766;
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --glass-border: rgba(77, 163, 255, 0.15);
    --blue-bg: rgba(77, 163, 255, 0.12);
    --text-black: #fff;
}

/* ============================================
   TAB NAVIGATION
   ============================================ */

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    transition: 0.3s ease;
}

.auth-tab {
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "Poppins", sans-serif;
}

    .auth-tab:hover {
        color: var(--primary-glow);
    }

    .auth-tab.active {
        color: var(--primary-glow);
        position: relative;
    }

        .auth-tab.active::after {
            content: "";
            position: absolute;
            bottom: 0;
            height: 3px;
            border-radius: 20px;
            width: 100%;
            background-color: var(--primary-glow);
        }

/* ============================================
   FORM STYLES
   ============================================ */

.auth-form {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background-color: #fff;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 14px;
    font-family: "Poppins", sans-serif;
    transition: var(--transition);
}

    .form-input::placeholder {
        color: var(--text-muted);
    }

    .form-input:focus {
        outline: none;
        border-color: var(--primary-glow);
        box-shadow: 0 0 0 3px rgba(83, 175, 255, 0.15);
        background-color: #ffffff;
    }
/* Password Group Styles */
.password-group {
    position: relative;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-input {
    padding-right: 15px;
    padding-left: 45px !important;
}

.toggle-password {
    position: absolute;
    left: 12px; /* RTL adjustment - changed from right to left */
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 18px;
    padding: 5px;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .toggle-password:hover {
        color: var(--primary-color);
    }

    .toggle-password:focus {
        outline: none;
    }

    .toggle-password i {
        pointer-events: none;
        font-size: 18px;
    }

/* If you're using Font Awesome 6 or need compatibility */
.fa-eye, .fa-eye-slash {
    transition: color 0.3s ease;
}

/* Optional: Add animation when toggling */
@keyframes eyePulse {
    0% {
        transform: translateY(-50%) scale(1);
    }

    50% {
        transform: translateY(-50%) scale(1.1);
    }

    100% {
        transform: translateY(-50%) scale(1);
    }
}

.toggle-password:active i {
    animation: eyePulse 0.2s ease;
}
/* ============================================
   CHECKBOX & ICON TOGGLE
   ============================================ */

.form-checkbox-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

    .form-checkbox input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
        accent-color: var(--primary-glow);
    }

.icon-toggle {
    display: flex;
    gap: 10px;
    margin-right: auto;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #53afff, #3a8fd4);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
    font-family: "Poppins", sans-serif;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(83, 175, 255, 0.3);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

    .btn-primary:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

.btn-secondary {
    width: 100%;
    padding: 12px 20px;
    background-color: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 12px;
    font-family: "Poppins", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .btn-secondary:hover {
        background-color: rgba(83, 175, 255, 0.1);
        transform: translateY(-2px);
    }

/* ============================================
   DIVIDER
   ============================================ */

.divider-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: var(--text-muted);
    transition: background-color 0.3s ease;
}

.divider-text {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

/* ============================================
   SOCIAL LOGIN
   ============================================ */

.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    background-color: transparent;
    border: 2px solid;
    border-radius: 8px;
    color: var(--text-black);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: ease 0.2s all;
    font-family: "Poppins", sans-serif;
}

    .social-btn:hover {
        border-color: var(--primary-blue);
        background-color: rgba(83, 175, 255, 0.08);
        transform: translateY(-2px);
    }

    .social-btn i {
        font-size: 18px;
    }

/* ============================================
   FOOTER TEXT
   ============================================ */

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

    .auth-footer a {
        color: var(--primary-blue);
        text-decoration: none;
        font-weight: 600;
        transition: var(--transition);
        cursor: pointer;
    }

        .auth-footer a:hover {
            text-decoration: underline;
        }

/* ============================================
   FORGOT LINK
   ============================================ */

.forgot-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

    .forgot-link:hover {
        text-decoration: underline;
        color: #3a8fd4;
    }

/* ============================================
   SIGN IN FOOTER GROUP
   ============================================ */

.signin-footer-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.create-account-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

    .create-account-link:hover {
        text-decoration: underline;
        color: #3a8fd4;
    }

.signin-footer-group .btn-primary {
    margin-top: 0;
    min-width: 120px;
    padding: 10px 20px;
}

/* ============================================
   ALERT STYLES
   ============================================ */

.alert {
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    color: #c92a2a;
    display: none;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    color: #00cf29;
    display: none;
}

.spiner {
    margin-left: 15px;
    font-size: 25px;
    font-weight: 700;
    animation: spiner 2s infinite linear;
}

/* =============================================================================================== */
/* login page */
/* =============================================================================================== */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-main);
    padding: 20px;
    transition: background 0.3s ease;
}

.auth-wrapper {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #53afff, #3a8fd4);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 24px;
    transition: var(--transition);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.logo-image {
    max-width: 180px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

    .logo-image:hover {
        transform: scale(1.05);
    }

/* Logo in auth pages (login, signup, signin) */
.logo-image {
    max-width: 150px;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 50%;
}

    .logo-image img {
        width: 100%;
    }

/* Logo in payment page */
.payment-header .logo-image {
    max-width: 140px;
}

/* Logo in contact page */
.contact-header .logo-image {
    max-width: 140px;
}

.signup-steps {
    color: var(--text-black);
}

.steps-icon {
    font-size: 2rem;
}

.single-step {
    padding: 8px 20px;
    border-radius: 30px;
}

    .single-step.active {
        background-color: var(--primary-glow);
    }

.iti {
    width: 100%;
}
