/* ============================================
   MODERN AUTH LAYOUT - UNIFIED STYLES
   ============================================ */

:root {
    --primary-color: #7c3aed;
    --primary-hover: #6d28d9;
    --secondary-color: #8b5cf6;
    --accent-color: #a78bfa;
    --bg-dark: #0a0a0f;
    --bg-secondary: #151520;
    --bg-card: #1a1a2e;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --text-primary: #ffffff;
    --text-dark: #1a1a2e;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --border-color: #2a2a40;
    --border-light: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    --gradient-secondary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   GLOBAL RESET & BASE STYLES
   ============================================ */

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-attachment: fixed;
    min-height: 100vh;
    padding-top: 84px;
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

body > .auth-container {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

body > .footer {
    flex-shrink: 0;
    margin-top: 0;
    order: 999;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.auth-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    min-height: calc(100vh - 84px - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

.auth-container-register,
.auth-container-login,
.auth-container-recovery {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: auto;
    flex: 1 0 auto;
}

.auth-register-content,
.auth-login-content,
.auth-recovery-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    align-items: center;
    flex: 1;
}

.auth-container-login .auth-login-content,
.auth-container-recovery .auth-recovery-content {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
}

@media (min-width: 969px) {
    .auth-container-login .auth-login-content,
    .auth-container-recovery .auth-recovery-content {
        min-height: calc(100vh - 84px - 60px);
    }
}

.auth-login-info,
.auth-recovery-info {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 1;
    height: 100%;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    height: 100%;
}

.auth-container-login .auth-form-wrapper,
.auth-container-recovery .auth-form-wrapper {
    order: 2;
}

.auth-form-wrapper .auth-form-card {
    width: 100%;
    margin: 0;
}

.auth-container-login .auth-form-wrapper .auth-form-card,
.auth-container-recovery .auth-form-wrapper .auth-form-card {
    margin: auto 0;
}

@media (min-width: 969px) {
    .auth-register-content {
        align-items: stretch;
    }
    
    .auth-register-content .auth-form-card,
    .auth-info-card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .auth-container-login .auth-form-card,
    .auth-container-recovery .auth-form-card {
        height: auto;
        display: block;
    }
}

@media (max-width: 968px) {
    .auth-register-content,
    .auth-login-content,
    .auth-recovery-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        align-items: start;
    }
    
    .auth-container-login .auth-login-content,
    .auth-container-recovery .auth-recovery-content {
        grid-template-columns: 1fr !important;
        min-height: auto;
    }
    
    .auth-form-wrapper {
        max-width: 550px;
        margin: 0 auto;
        order: 1 !important;
        width: 100%;
    }
    
    .auth-container-login .auth-form-wrapper,
    .auth-container-recovery .auth-form-wrapper {
        order: 1 !important;
    }
    
    .auth-register-info,
    .auth-login-info,
    .auth-recovery-info {
        max-width: 550px;
        margin: 0 auto;
        order: 2 !important;
        width: 100%;
    }
    
    .auth-container-login .auth-login-info,
    .auth-container-recovery .auth-recovery-info {
        order: 2 !important;
    }
}

/* ============================================
   FORM CARD
   ============================================ */

.auth-form-card {
    background: var(--bg-white) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-xl) !important;
    padding: 2rem 1.75rem !important;
    width: 100% !important;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto !important;
}

.auth-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.form-login {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   FORM HEADER
   ============================================ */

.auth-form-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-form-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.375rem;
    line-height: 1.2;
}

.auth-form-header .subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ============================================
   FORM GROUPS & INPUTS
   ============================================ */

.auth-form-group {
    margin-bottom: 1.125rem;
    position: relative;
}

.auth-form-group label {
    display: none;
}

.auth-form-group input[type="text"],
.auth-form-group input[type="email"],
.auth-form-group input[type="password"],
.auth-form-group input[type="tel"] {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0.75rem 1rem 0.75rem 2.5rem !important;
    font-size: 0.9375rem !important;
    border: 1.5px solid var(--border-light) !important;
    border-radius: var(--radius-md) !important;
    background: var(--bg-white) !important;
    color: var(--text-dark) !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    margin: 0 !important;
    height: 44px !important;
    line-height: 1.5 !important;
    box-sizing: border-box;
}

.auth-form-group select {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0.75rem 2.5rem 0.75rem 2.5rem !important;
    font-size: 0.9375rem !important;
    border: 1.5px solid var(--border-light) !important;
    border-radius: var(--radius-md) !important;
    background: var(--bg-white) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    color: var(--text-dark) !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    margin: 0 !important;
    height: 44px !important;
    line-height: 1.5 !important;
    appearance: none;
    cursor: pointer;
    box-sizing: border-box;
}

.auth-form-group select option {
    color: var(--text-dark);
    background: var(--bg-white);
    padding: 0.5rem;
}

.auth-form-group select option:first-child {
    color: var(--text-light);
}

.auth-select-wrapper {
    position: relative;
    width: 100%;
    min-width: 0;
    flex: 1;
}

.auth-select-wrapper .auth-input-icon {
    z-index: 2;
    pointer-events: none;
}

.auth-select-wrapper select {
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
    width: 100% !important;
    min-width: 0 !important;
    flex: 1;
}

.auth-select-wrapper select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1) !important;
    outline: none !important;
}

.auth-select-wrapper:focus-within .auth-input-icon {
    color: var(--primary-color);
}

.auth-select-wrapper select:invalid {
    color: var(--text-light);
}

.auth-select-wrapper select:valid:not([value=""]) {
    color: var(--text-dark);
}

.auth-form-grid .auth-form-group {
    min-width: 0;
    overflow: hidden;
}

.auth-form-grid .auth-form-group > * {
    min-width: 0;
}

.auth-form-group input:focus,
.auth-form-group select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1) !important;
    outline: none !important;
}

.auth-form-group input::placeholder {
    color: var(--text-light);
}

.auth-form-group input:disabled {
    background: var(--bg-light);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Input with icon */
.auth-input-wrapper {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
}

.auth-input-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    pointer-events: none;
    z-index: 1;
    transition: color 0.2s ease;
}

.auth-input-wrapper:focus-within .auth-input-icon {
    color: var(--primary-color);
}

.auth-input-wrapper input {
    padding-left: 2.5rem !important;
}

/* Input states */
.auth-form-group.error input,
.auth-form-group.error select {
    border-color: var(--error-color) !important;
}

.auth-form-group.error .auth-input-icon {
    color: var(--error-color) !important;
}

.auth-checkbox-group.error {
    border: 1.5px solid var(--error-color);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    background: rgba(239, 68, 68, 0.05);
}

.auth-form-group.success input {
    border-color: var(--success-color);
}

.auth-form-group .error-message {
    display: block;
    font-size: 0.75rem;
    color: var(--error-color);
    margin-top: 0.25rem;
}

.auth-form-group .success-message {
    display: block;
    font-size: 0.75rem;
    color: var(--success-color);
    margin-top: 0.25rem;
}

/* ============================================
   GRID LAYOUT
   ============================================ */

.auth-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
    align-items: stretch;
    margin-bottom: 20px;
}

.auth-form-grid .auth-form-group {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
}

.auth-form-grid .auth-form-group .auth-input-wrapper {
    flex: 1;
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.auth-form-grid .auth-form-group .auth-input-wrapper input,
.auth-form-grid .auth-form-group .auth-input-wrapper select {
    flex: 1;
    width: 100%;
    min-width: 0;
}

@media (max-width: 640px) {
    .auth-form-grid {
        grid-template-columns: 1fr;
        gap: 1.125rem;
    }
    
    .auth-form-grid .auth-form-group {
        margin-bottom: 1.125rem;
    }
}

/* ============================================
   CHECKBOX & RADIO
   ============================================ */

.auth-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
}

.auth-checkbox-group input[type="checkbox"] {
    width: 1.25rem !important;
    height: 1.25rem !important;
    min-width: 1.25rem !important;
    min-height: 1.25rem !important;
    max-width: 1.25rem !important;
    max-height: 1.25rem !important;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

input[type="checkbox"]#register_isWhatsApp,
input[type="checkbox"]#register_isTelegram,
input[type="checkbox"]#register_uidTerm {
    width: 1.25rem !important;
    height: 1.25rem !important;
    min-width: 1.25rem !important;
    min-height: 1.25rem !important;
    max-width: 1.25rem !important;
    max-height: 1.25rem !important;
}

.auth-checkbox-group label {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.auth-checkbox-group a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.auth-checkbox-group a:hover {
    text-decoration: underline;
}

/* ============================================
   BUTTONS
   ============================================ */

.auth-btn {
    width: 100% !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--base-menu) !important;
    min-height: 44px;
}

.auth-btn-primary {
    background: var(--gradient-primary) !important;
    color: white !important;
    box-shadow: var(--shadow-md) !important;
    border: none !important;
}

.auth-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.auth-btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.auth-btn-secondary {
    background: var(--bg-white) !important;
    color: var(--text-dark) !important;
    border: 2px solid var(--border-light) !important;
}

.auth-btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.auth-btn-back {
    background: var(--bg-white) !important;
    color: var(--text-secondary) !important;
    border: 1.5px solid var(--border-light) !important;
}

.auth-btn-back:hover {
    background: var(--bg-light) !important;
    border-color: var(--text-secondary) !important;
    color: var(--text-dark) !important;
    transform: none !important;
}

.auth-btn-change {
    background: var(--bg-white) !important;
    color: var(--text-dark) !important;
    border: 2px solid var(--border-light) !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 1rem !important;
}

.auth-btn-change:hover {
    background: var(--bg-light) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    transform: none !important;
}

.auth-code-sent-message {
    background: rgba(124, 58, 237, 0.05);
    border: 1.5px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-dark);
    text-align: center;
}

.auth-code-sent-message i {
    color: var(--primary-color);
    font-size: 1.125rem;
}

.auth-code-sent-message span {
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
}

.auth-code-sent-message span b {
    color: var(--primary-color);
    font-weight: 600;
}

/* ============================================
   REGISTER INFO SECTION
   ============================================ */

.auth-register-info {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-info-card {
    background: transparent;
    padding: 2rem 1.5rem;
    width: 100%;
    position: relative;
    animation: slideUp 0.5s ease-out 0.2s both;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.auth-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    width: fit-content;
    box-shadow: var(--shadow-md);
    margin: 0 auto;
}

.auth-info-badge i {
    font-size: 0.875rem;
    display: inline-block;
    line-height: 1;
}

.auth-info-main {
    text-align: center;
}

.auth-info-main h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-info-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.auth-info-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-info-feature {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: rgba(255, 255, 255);
    border-radius: var(--radius-lg);
    border: 1.5px solid rgba(124, 58, 237, 0.1);
    transition: all 0.3s ease;
}

.auth-info-feature:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.auth-info-feature-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.auth-info-feature-icon i {
    font-size: 1.25rem;
    color: white;
}

.auth-info-feature-content {
    flex: 1;
}

.auth-info-feature-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
}

.auth-info-feature-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.auth-info-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    align-items: center;
}

.auth-info-cta .auth-btn {
    width: 100%;
    max-width: 300px;
}

.auth-info-cta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: white;
}

.auth-info-cta-item i {
    color: var(--success-color);
    font-size: 1.125rem;
    flex-shrink: 0;
    filter: brightness(1.2);
}

@media (max-width: 968px) {
    .auth-info-card {
        padding: 2rem 1.5rem;
    }
    
    .auth-info-main h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 640px) {
    .auth-info-card {
        padding: 1.5rem 1.25rem;
        gap: 1.5rem;
    }
    
    .auth-info-main h2 {
        font-size: 1.5rem;
    }
    
    .auth-info-subtitle {
        font-size: 0.9375rem;
    }
    
    .auth-info-features {
        gap: 1.25rem;
    }
    
    .auth-info-feature {
        padding: 1rem;
    }
    
    .auth-info-feature-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .auth-info-feature-icon i {
        font-size: 1.125rem;
    }
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Button with loading state */
.auth-btn.loading {
    pointer-events: none;
}

.auth-btn.loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   FORGOT PASSWORD LINK
   ============================================ */

.auth-forgot-password {
    text-align: right;
    margin: 0;
    padding: 0;
}

.auth-forgot-password a {
    color: var(--primary-color) !important;
    text-decoration: none !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.375rem !important;
    transition: all 0.2s ease !important;
    padding: 0.25rem 0 !important;
}

.auth-forgot-password a:hover {
    opacity: 0.8;
    text-decoration: none !important;
}

.auth-forgot-password a i {
    font-size: 0.75rem;
}

/* ============================================
   OTP INPUTS
   ============================================ */

.auth-otp-container {
    display: flex;
    justify-content: center;
    gap: 0.625rem;
    margin: 1.5rem 0;
}

.auth-otp-input {
    width: 3.5rem;
    height: 3.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    color: var(--text-dark);
    transition: var(--transition);
    outline: none;
}

.auth-otp-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    transform: scale(1.05);
}

.auth-otp-input:disabled {
    background: var(--bg-light);
    opacity: 0.6;
}

@media (max-width: 640px) {
    .auth-otp-container {
        gap: 0.5rem;
    }
    
    .auth-otp-input {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.25rem;
    }
}

/* ============================================
   CHOICE SELECTION
   ============================================ */

.auth-choice-container {
    margin-top: 1.25rem;
}

.auth-choice-container > div {
    background: var(--bg-light);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 0.625rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    overflow: hidden;
}

.auth-choice-container > div:hover {
    border-color: var(--primary-color);
    background: rgba(124, 58, 237, 0.05);
    transform: none;
}

.auth-choice-container > div.selected {
    border-color: var(--primary-color);
    background: rgba(124, 58, 237, 0.1);
}

.auth-choice-item {
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-choice-item:hover {
    border-color: var(--primary-color);
    background: rgba(124, 58, 237, 0.05);
    transform: translateX(4px);
}

.auth-choice-item.selected {
    border-color: var(--primary-color);
    background: rgba(124, 58, 237, 0.1);
}

.auth-choice-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
}

.auth-choice-content {
    flex: 1;
}

.auth-choice-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.auth-choice-value {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.div-choice-details {
    padding-top: 20px;
}

.div-choice-details > div {
    overflow: hidden;
    max-width: 100%;
}

.div-choice-details > div p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.div-choice-details > div p:first-child {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.div-choice-details > div p:not(:first-child) {
    color: var(--text-secondary);
}

/* ============================================
   SECTION DIVIDERS
   ============================================ */

.auth-section-divider {
    display: flex;
    align-items: center;
    margin: 1rem 0 1.25rem 0;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-section-divider::before,
.auth-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.auth-section-divider span {
    padding: 0 1rem;
}

/* ============================================
   PASSWORD STRENGTH INDICATOR
   ============================================ */

.auth-password-strength {
    margin-top: 0.5rem;
    height: 4px;
    background: var(--bg-light);
    border-radius: 2px;
    overflow: hidden;
}

.auth-password-strength-bar {
    height: 100%;
    transition: var(--transition);
    border-radius: 2px;
}

.auth-password-strength-bar.weak {
    width: 33%;
    background: var(--error-color);
}

.auth-password-strength-bar.medium {
    width: 66%;
    background: var(--warning-color);
}

.auth-password-strength-bar.strong {
    width: 100%;
    background: var(--success-color);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (min-width: 768px) {
    .auth-form-card {
        padding: 2.25rem 2rem !important;
    }
    
    .auth-form-header h1 {
        font-size: 1.875rem;
    }
}

@media (max-width: 767px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-form-card {
        padding: 1.75rem 1.5rem !important;
        border-radius: var(--radius-lg);
    }
    
    .auth-form-header {
        margin-bottom: 1.5rem !important;
    }
    
    .auth-form-header h1 {
        font-size: 1.625rem;
    }
    
    .auth-form-header .subtitle {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }
    
    .auth-form-card {
        padding: 1.5rem 1.25rem !important;
    }
    
    .auth-form-header {
        margin-bottom: 1.5rem !important;
    }
    
    .auth-form-header h1 {
        font-size: 1.5rem;
    }
    
    .auth-form-group {
        margin-bottom: 1rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.auth-text-center {
    text-align: center;
}

.auth-text-muted {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.auth-mt-1 { margin-top: 0.5rem; }
.auth-mt-2 { margin-top: 1rem; }
.auth-mt-3 { margin-top: 1.5rem; }
.auth-mt-4 { margin-top: 2rem; }

.auth-mb-1 { margin-bottom: 0.5rem; }
.auth-mb-2 { margin-bottom: 1rem; }
.auth-mb-3 { margin-bottom: 1.5rem; }
.auth-mb-4 { margin-bottom: 2rem; }

.auth-hidden {
    display: none !important;
}

.div-login,
.div-choice,
.div-validate,
.div-login-newpassword {
    width: 100%;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.div-choice,
.div-validate,
.div-login-newpassword {
    display: none;
}

.div-choice.auth-fade-in,
.div-validate.auth-fade-in,
.div-login-newpassword.auth-fade-in {
    display: block;
}

.div-login:not(.auth-hidden),
.div-choice.auth-fade-in:not(.auth-hidden),
.div-validate.auth-fade-in:not(.auth-hidden),
.div-login-newpassword.auth-fade-in:not(.auth-hidden) {
    opacity: 1;
    transform: translateY(0);
}

.auth-fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-slide-in {
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   COMPATIBILITY OVERRIDES
   ============================================ */

.auth-form-card form {
    width: 100% !important;
    margin: 0 !important;
    display: block !important;
    text-align: left !important;
    height: auto !important;
}

.auth-container form {
    width: 100% !important;
    margin: 0 !important;
    display: block !important;
    text-align: left !important;
    height: auto !important;
}

.forgot-password {
    margin-bottom: 1.5rem !important;
    text-align: right !important;
}

.forgot-password a {
    color: var(--primary-color) !important;
    text-decoration: none !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    transition: var(--transition) !important;
}

.forgot-password a:hover {
    text-decoration: underline !important;
}

/* ============================================
   LOADING STATES
   ============================================ */

.auth-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.auth-spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============================================
   ALERT MESSAGES
   ============================================ */

.auth-alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.3s ease-out;
}

/* ============================================
   FOOTER STYLING
   ============================================ */

body .footer {
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    clear: both !important;
    margin-top: 0 !important;
    padding: 1.5rem 1rem !important;
    text-align: center !important;
    color: var(--text-secondary) !important;
    flex-shrink: 0 !important;
    order: 999 !important;
    display: block !important;
}

body .footer .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

body .footer p {
    margin: 0 !important;
    font-size: 0.875rem !important;
    color: var(--text-secondary) !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success-color);
    color: #065f46;
}

.auth-alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error-color);
    color: #991b1b;
}

.auth-alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning-color);
    color: #92400e;
}

.auth-alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid #3b82f6;
    color: #1e40af;
}
