/* UZYHOMES - Authentication Pages CSS */
/* Quiet Luxury Authentication Styling */

/* ===== AUTH HERO SECTION ===== */
.auth-hero {
    background-color: var(--color-stone);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.auth-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/patterns/subtle-pattern.png');
    opacity: 0.03;
    pointer-events: none;
}

.auth-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-charcoal);
    font-weight: 300;
    letter-spacing: -0.02em;
}

.auth-hero .lead {
    font-size: 1.2rem;
    color: var(--color-grey);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 300;
}

/* ===== AUTH CARD ===== */
.auth-card {
    background-color: white;
    padding: 3rem;
    border: 1px solid var(--color-sand);
    transition: var(--transition);
    position: relative;
    margin-bottom: 2rem;
}

.auth-card:hover {
    box-shadow: var(--shadow-soft);
    border-color: var(--color-linen);
}

.auth-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--color-charcoal);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1.2rem;
    letter-spacing: -0.01em;
}

.auth-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 1px;
    background-color: var(--color-clay);
}

/* ===== FORM STYLES ===== */
.form-label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-charcoal);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.form-control {
    border: 1px solid var(--color-sand);
    border-radius: 0;
    padding: 0.8rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-charcoal);
    background-color: white;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--color-clay);
    box-shadow: 0 0 0 3px rgba(166, 138, 111, 0.05);
    outline: none;
}

.form-control::placeholder {
    color: #cccccc;
    font-weight: 300;
    font-size: 0.9rem;
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: none;
}

.form-control.is-valid {
    border-color: var(--color-clay);
    background-image: none;
}

/* ===== PASSWORD INPUT WITH TOGGLE ===== */
.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input .form-control {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: transparent;
    border: none;
    padding: 0;
    color: var(--color-grey);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--color-clay);
}

.password-toggle:focus {
    outline: none;
}

.password-toggle i {
    font-size: 1.1rem;
}

/* ===== PASSWORD STRENGTH INDICATOR ===== */
.password-strength {
    width: 100%;
}

.strength-bar {
    height: 3px;
    background-color: var(--color-sand);
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-level {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-level.weak {
    background-color: #dc3545;
    width: 25%;
}

.strength-level.fair {
    background-color: #ffc107;
    width: 50%;
}

.strength-level.good {
    background-color: #17a2b8;
    width: 75%;
}

.strength-level.strong {
    background-color: #28a745;
    width: 100%;
}

.password-hint {
    font-size: 0.75rem;
    color: var(--color-grey);
    letter-spacing: 0.3px;
}

.password-hint.weak {
    color: #dc3545;
}

.password-hint.fair {
    color: #ffc107;
}

.password-hint.good {
    color: #17a2b8;
}

.password-hint.strong {
    color: #28a745;
}

/* ===== FORM CHECKBOXES ===== */
.form-check {
    padding-left: 1.8rem;
    margin-bottom: 0.5rem;
}

.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-left: -1.8rem;
    border: 1px solid var(--color-sand);
    border-radius: 0;
    background-color: white;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--color-charcoal);
    border-color: var(--color-charcoal);
}

.form-check-input:focus {
    border-color: var(--color-clay);
    box-shadow: 0 0 0 3px rgba(166, 138, 111, 0.05);
    outline: none;
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--color-charcoal);
    line-height: 1.5;
    cursor: pointer;
}

.form-check-label strong {
    font-weight: 500;
    display: block;
    margin-bottom: 0.2rem;
}

.form-check-label small {
    color: var(--color-grey);
    font-size: 0.8rem;
}

/* ===== ACCOUNT OPTIONS SECTION ===== */
.account-options {
    background-color: var(--color-stone);
    padding: 1.8rem;
    margin: 1.5rem 0;
    border: 1px solid var(--color-sand);
}

.account-options h5 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-charcoal);
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--color-sand);
}

.account-options .form-check {
    margin-bottom: 1rem;
}

.account-options .form-check:last-child {
    margin-bottom: 0;
}

/* ===== BUTTONS ===== */
.btn-dark {
    background-color: var(--color-charcoal);
    border-color: var(--color-charcoal);
    color: white;
    font-weight: 300;
    letter-spacing: 2px;
    padding: 0.8rem 2rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-radius: 0;
    transition: var(--transition);
}

.btn-dark:hover {
    background-color: transparent;
    color: var(--color-charcoal);
    border-color: var(--color-charcoal);
}

.btn-dark:disabled {
    background-color: var(--color-grey);
    border-color: var(--color-grey);
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-outline-dark {
    background-color: transparent;
    border: 1px solid var(--color-charcoal);
    color: var(--color-charcoal);
    font-weight: 300;
    letter-spacing: 2px;
    padding: 0.8rem 2rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-radius: 0;
    transition: var(--transition);
}

.btn-outline-dark:hover {
    background-color: var(--color-charcoal);
    color: white;
    border-color: var(--color-charcoal);
}

.btn-outline-dark i {
    margin-right: 0.5rem;
}

/* ===== AUTH DIVIDER ===== */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--color-sand);
    z-index: 1;
}

.auth-divider span {
    position: relative;
    z-index: 2;
    background-color: white;
    padding: 0 1.5rem;
    color: var(--color-grey);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== SOCIAL LOGIN BUTTONS ===== */
.social-login {
    margin: 1.5rem 0;
}

.social-login .btn {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-login .btn i {
    font-size: 1.1rem;
    margin-right: 0.8rem;
}

/* ===== FORGOT PASSWORD LINK ===== */
.forgot-link {
    color: var(--color-grey);
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.forgot-link:hover {
    color: var(--color-charcoal);
    border-bottom-color: var(--color-charcoal);
}

/* ===== AUTH LINK ===== */
.auth-link {
    color: var(--color-charcoal);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
    padding-bottom: 1px;
}

.auth-link:hover {
    color: var(--color-clay);
    border-bottom-color: var(--color-clay);
}

/* ===== MEMBER BENEFITS ===== */
.member-benefits {
    padding: 1.5rem 0 0;
}

.member-benefits h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--color-charcoal);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.member-benefits h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background-color: var(--color-clay);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.benefit-item {
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border: 1px solid var(--color-sand);
    transition: var(--transition);
}

.benefit-item:hover {
    border-color: var(--color-clay);
    transform: translateY(-3px);
    box-shadow: var(--shadow-subtle);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.benefit-icon i {
    font-size: 1.8rem;
    color: var(--color-clay);
    position: relative;
    z-index: 2;
}

.benefit-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid var(--color-linen);
    transform: rotate(45deg);
    z-index: 1;
}

.benefit-item h5 {
    font-family: var(--font-serif);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-charcoal);
}

.benefit-item p {
    font-size: 0.8rem;
    color: var(--color-grey);
    margin-bottom: 0;
}

/* ===== AUTH BENEFITS LIST ===== */
.auth-benefits {
    padding: 1.5rem 0;
}

.auth-benefits h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--color-charcoal);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.auth-benefits h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background-color: var(--color-clay);
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--color-sand);
    color: var(--color-charcoal);
    font-size: 0.95rem;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list li i {
    color: var(--color-clay);
    font-size: 1rem;
    width: 24px;
}

/* ===== ALERT MESSAGES ===== */
.alert {
    border-radius: 0;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border-left: 3px solid #28a745;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-left: 3px solid #dc3545;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border-left: 3px solid #ffc107;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
    border-left: 3px solid #17a2b8;
}

.alert .btn-close {
    font-size: 0.8rem;
    padding: 1rem;
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .input-group {
    border: 1px solid var(--color-sand);
    background-color: white;
}

.newsletter-form .form-control {
    border: none;
    padding: 0.8rem 1.2rem;
    background-color: transparent;
}

.newsletter-form .btn {
    padding: 0.8rem 2rem;
    background-color: var(--color-charcoal);
    border: none;
    color: white;
    letter-spacing: 1px;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-radius: 0;
}

.newsletter-form .btn:hover {
    background-color: var(--color-clay);
}

/* ===== LOADING SPINNERS ===== */
.spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
    margin-right: 0.5rem;
}

.btn .spinner-border {
    margin-right: 0.5rem;
}

/* ===== INVALID FEEDBACK ===== */
.invalid-feedback {
    font-size: 0.75rem;
    color: #dc3545;
    margin-top: 0.3rem;
    display: block;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .auth-hero {
        padding: 7rem 0 3rem;
    }
    
    .auth-hero h1 {
        font-size: 2.5rem;
    }
    
    .auth-card {
        padding: 2.5rem;
    }
    
    .auth-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .auth-hero {
        padding: 6rem 0 2.5rem;
    }
    
    .auth-hero h1 {
        font-size: 2rem;
    }
    
    .auth-hero .lead {
        font-size: 1.1rem;
    }
    
    .auth-card {
        padding: 2rem;
    }
    
    .auth-title {
        font-size: 1.4rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .benefit-item {
        padding: 1.2rem;
    }
    
    .account-options {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .auth-hero {
        padding: 5rem 0 2rem;
    }
    
    .auth-hero h1 {
        font-size: 1.8rem;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .auth-title {
        font-size: 1.3rem;
    }
    
    .auth-title::after {
        width: 40px;
    }
    
    .btn-dark, .btn-outline-dark {
        padding: 0.7rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .form-control {
        padding: 0.7rem 0.9rem;
    }
    
    .benefit-icon {
        width: 50px;
        height: 50px;
    }
    
    .benefit-icon i {
        font-size: 1.5rem;
    }
    
    .benefit-item h5 {
        font-size: 0.9rem;
    }
    
    .benefit-item p {
        font-size: 0.75rem;
    }
    
    .account-options {
        padding: 1.2rem;
    }
    
    .form-check-label {
        font-size: 0.85rem;
    }
    
    .form-check-label small {
        font-size: 0.75rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .auth-hero {
        background: none;
        padding: 2rem 0;
    }
    
    .auth-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .btn, .social-login, .newsletter-form {
        display: none;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: fadeIn 0.5s ease-out;
}

.alert {
    animation: fadeIn 0.3s ease-out;
}

/* ===== RTL SUPPORT ===== */
[dir="rtl"] .auth-title::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .password-toggle {
    right: auto;
    left: 1rem;
}

[dir="rtl"] .password-input .form-control {
    padding-right: 1rem;
    padding-left: 3rem;
}

[dir="rtl"] .form-check {
    padding-left: 0;
    padding-right: 1.8rem;
}

[dir="rtl"] .form-check-input {
    margin-left: 0;
    margin-right: -1.8rem;
}

[dir="rtl"] .member-benefits h4::after,
[dir="rtl"] .auth-benefits h4::after {
    left: auto;
    right: 0;
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .auth-card {
        background-color: var(--color-charcoal);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .auth-title {
        color: white;
    }
    
    .form-control {
        background-color: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    .form-control:focus {
        border-color: var(--color-clay);
    }
    
    .form-check-label {
        color: white;
    }
    
    .benefit-item {
        background-color: rgba(255, 255, 255, 0.05);
    }
}