/* ============================================= */
/* AUTH HERO SECTION */
/* ============================================= */
.auth-hero {
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream);
    text-align: center;
    position: relative;
    padding-top: 100px;
}



.auth-hero-content {
    position: relative;
    max-width: 600px;
    padding: 0 20px;
}

.auth-hero h1 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.auth-hero .lead {
    color: var(--cream);
    opacity: 0.9;
    font-style: italic;
}

/* ============================================= */
/* AUTH CONTAINER */
/* ============================================= */
.auth-container {
    max-width: 500px;
    margin: -80px auto 0;
    position: relative;
    z-index: 3;
    padding: 0 20px;
}

.auth-card {
    background: var(--burgundy);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    padding: 40px;
    border: 2px solid var(--gold);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.05) 0%, 
        transparent 50%, 
        rgba(212, 175, 55, 0.03) 100%
    );
    pointer-events: none;
}

/* ============================================= */
/* AUTH CARD HEADER */
/* ============================================= */
.auth-card-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.auth-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-subtitle {
    color: var(--cream);
    opacity: 0.8;
    font-size: 1rem;
    font-style: italic;
    margin: 0;
}

/* ============================================= */
/* FORM ELEMENTS */
/* ============================================= */
.auth-form {
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 8px;
    display: block;
    font-size: 1rem;
}

.form-control {
    border: 2px solid var(--burgundy-light);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--cream);
    color: var(--burgundy);
    width: 100%;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
    background: white;
    outline: none;
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: rgba(75, 30, 47, 0.6);
    font-style: italic;
}

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

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--burgundy);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    z-index: 2;
}

.password-toggle:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
}

.password-toggle:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ============================================= */
/* CUSTOM CHECKBOX */
/* ============================================= */
.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.custom-checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--cream);
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: var(--cream);
    border: 2px solid var(--burgundy-light);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.custom-checkbox:hover .checkmark {
    border-color: var(--gold);
    background-color: rgba(212, 175, 55, 0.1);
}

.custom-checkbox-input:checked ~ .checkbox-label .checkmark {
    background-color: var(--gold);
    border-color: var(--gold);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--burgundy);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox-input:checked ~ .checkbox-label .checkmark:after {
    display: block;
}

/* ============================================= */
/* PASSWORD STRENGTH INDICATOR */
/* ============================================= */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: rgba(99, 50, 68, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    background: linear-gradient(90deg, #dc3545, #e85a6b);
}

.strength-fill.fair {
    background: linear-gradient(90deg, #ffc107, #ffdb4a);
}

.strength-fill.good {
    background: linear-gradient(90deg, #17a2b8, #3fc3d7);
}

.strength-fill.strong {
    background: linear-gradient(90deg, #28a745, #34ce57);
}

.strength-text {
    font-size: 0.8rem;
    color: var(--cream);
    opacity: 0.8;
}

.password-match {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #28a745;
}

/* ============================================= */
/* SUBMIT BUTTON */
/* ============================================= */
.auth-submit-btn {
    background: linear-gradient(135deg, var(--gold), #e6c558);
    border: none;
    color: var(--burgundy);
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.auth-submit-btn:hover:not(:disabled)::before {
    left: 100%;
}

.auth-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #e6c558, var(--gold));
}

.auth-submit-btn:disabled {
    background: var(--burgundy-light);
    color: rgba(254, 246, 228, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ============================================= */
/* SPINNING ANIMATION */
/* ============================================= */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

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

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(212, 175, 55, 0.3) 20%, 
        rgba(212, 175, 55, 0.3) 80%, 
        transparent
    );
}

.auth-divider span {
    background: var(--burgundy);
    padding: 0 20px;
    color: var(--gold);
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* ============================================= */
/* AUTH LINKS */
/* ============================================= */
.auth-links {
    text-align: center;
}

.auth-link-item {
    margin-bottom: 1rem;
    color: var(--cream);
    opacity: 0.9;
}

.auth-link-item:last-child {
    margin-bottom: 0;
}

.link-text {
    margin-right: 8px;
}

.auth-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.auth-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.auth-link:hover {
    color: var(--cream);
    text-decoration: none;
}

.auth-link:hover::after {
    width: 100%;
}

.forgot-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
}

.terms-link {
    color: var(--gold);
    text-decoration: underline;
    text-decoration-color: rgba(212, 175, 55, 0.5);
    transition: all 0.3s ease;
}

.terms-link:hover {
    color: var(--cream);
    text-decoration-color: var(--cream);
}

/* ============================================= */
/* ERROR AND HELP MESSAGES */
/* ============================================= */
.auth-error-message {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 1.5rem;
    color: #ff6b6b;
}

.error-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.error-item:last-child {
    margin-bottom: 0;
}

.field-error {
    color: #ff6b6b;
    font-size: 0.875rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
}

.field-help {
    color: var(--cream);
    opacity: 0.7;
    font-size: 0.8rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    font-style: italic;
}

/* ============================================= */
/* FADE IN ANIMATION */
/* ============================================= */
.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================= */
/* RESPONSIVE DESIGN */
/* ============================================= */
@media (max-width: 768px) {
    .auth-hero {
        height: 30vh;
        min-height: 250px;
        padding-top: 80px;
    }
    
    .auth-hero h1 {
        font-size: 2.5rem;
    }
    
    .auth-container {
        margin-top: -60px;
        padding: 0 15px;
    }
    
    .auth-card {
        padding: 30px 25px;
        border-radius: 16px;
    }
    
    .auth-title {
        font-size: 1.8rem;
    }
    
    .form-control {
        padding: 12px 14px;
        font-size: 16px;
    }
    
    .auth-submit-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .auth-hero {
        height: 25vh;
        min-height: 200px;
    }
    
    .auth-hero h1 {
        font-size: 2rem;
    }
    
    .auth-card {
        padding: 25px 20px;
    }
    
    .checkbox-label {
        font-size: 0.9rem;
    }
    
    .row .col-md-6 {
        margin-bottom: 0;
    }
    
    .row .col-md-6:first-child {
        margin-bottom: 1.5rem;
    }
}

/* ============================================= */
/* ACCESSIBILITY IMPROVEMENTS */
/* ============================================= */
@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .auth-submit-btn,
    .form-control,
    .auth-link,
    .checkmark,
    .strength-fill {
        animation: none;
        transition: none;
    }
}

/* Focus indicators for better accessibility */
.form-control:focus,
.auth-submit-btn:focus,
.auth-link:focus,
.password-toggle:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .auth-card {
        border-width: 3px;
    }
    
    .form-control {
        border-width: 2px;
    }
    
    .auth-submit-btn {
        border: 2px solid var(--burgundy);
    }
}