/* ==========================================================================
   SIKKHALAY STUDENT PORTAL — BENGALI AUTHENTICATION SYSTEM STYLES (CSS)
   Responsive Mobile-First UI with Banners, Autocomplete & Bengali Typography
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --auth-primary: #059669;          /* Emerald Primary */
    --auth-primary-dark: #047857;
    --auth-primary-light: #ECFDF5;
    --auth-primary-glow: rgba(5, 150, 105, 0.28);
    
    --auth-indigo: #4F46E5;
    --auth-sky: #0284C7;
    
    --auth-bg-page: #0F172A;
    --auth-surface: #FFFFFF;
    --auth-surface-soft: #F8FAFC;
    --auth-border: #E2E8F0;
    --auth-border-focus: #059669;
    
    --auth-text-dark: #0F172A;
    --auth-text-muted: #475569;
    --auth-text-subtle: #94A3B8;
    
    --auth-danger: #EF4444;
    --auth-success: #10B981;

    --auth-font-bn: 'Hind Siliguri', 'Plus Jakarta Sans', sans-serif;
    --auth-shadow-card: 0 25px 50px -12px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(226, 232, 240, 0.8);
    --auth-shadow-glow: 0 12px 30px rgba(5, 150, 105, 0.25);
}

html[data-theme="dark"],
[data-theme="dark"] {
    --auth-bg-page: #070D1E;
    --auth-surface: #1E293B;
    --auth-surface-soft: #0F172A;
    --auth-border: #334155;
    --auth-text-dark: #F8FAFC;
    --auth-text-muted: #CBD5E1;
    --auth-text-subtle: #94A3B8;
    --auth-shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(51, 65, 85, 0.8);
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select {
    background-color: #0F172A !important;
    border-color: #334155 !important;
    color: #F8FAFC !important;
}

[data-theme="dark"] .form-label {
    color: #E2E8F0 !important;
}

[data-theme="dark"] .auth-card,
[data-theme="dark"] .auth-card-container {
    background-color: #1E293B !important;
    border-color: #334155 !important;
}

/* Base Body Auth Override */
body.auth-page {
    min-height: 100vh;
    background: #0B132B;
    background-image: 
        radial-gradient(at 10% 10%, rgba(5, 150, 105, 0.2) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(79, 70, 229, 0.2) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(2, 132, 199, 0.15) 0px, transparent 50%);
    font-family: var(--auth-font-bn);
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    color: var(--auth-text-dark);
    -webkit-font-smoothing: antialiased;
}

/* Header Navbar for Auth Pages */
.auth-navbar {
    width: 100%;
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.auth-logo-badge {
    width: 44px;
    height: 44px;
    background: url('/assets/images/logo.jpeg') center/cover no-repeat;
    border-radius: 14px; 
    animation: logoPulse 3s infinite ease-in-out;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 20px rgba(5, 150, 105, 0.35); }
    50% { transform: scale(1.05); box-shadow: 0 12px 28px rgba(5, 150, 105, 0.5); }
}

.auth-brand-text {
    display: flex;
    flex-direction: column;
}

.auth-brand-title {
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.auth-brand-subtitle {
    font-size: 12px;
    font-weight: 600;
    color: #34D399;
    letter-spacing: 0.5px;
}

.auth-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.auth-nav-link:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Main Container Layout */
.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
}

.auth-card-container {
    width: 100%;
    background: #FFFFFF;
    border-radius: 28px;
    box-shadow: var(--auth-shadow-card);
    display: grid;
    grid-template-columns: 1.05fr 1.2fr;
    overflow: hidden;
    min-height: 640px;
    position: relative;
    animation: cardAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Left Hero Banner Side (Desktop) */
.auth-hero-side {
    background: linear-gradient(135deg, #064E3B 0%, #0F172A 100%);
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    color: #FFFFFF;
}

.auth-hero-side::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatGlow 8s infinite alternate ease-in-out;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-30px, 30px); }
}

.auth-hero-content {
    position: relative;
    z-index: 2;
}

.auth-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(52, 211, 153, 0.4);
    border-radius: 9999px;
    color: #34D399;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.auth-hero-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
    color: #FFFFFF;
}

.auth-hero-title span {
    background: linear-gradient(135deg, #34D399, #38BDF8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-hero-desc {
    font-size: 15px;
    color: #CBD5E1;
    line-height: 1.6;
    margin-bottom: 24px;
}

.auth-hero-banner-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    max-height: 240px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.auth-hero-banner-img:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(5, 150, 105, 0.3);
}

.auth-hero-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #E2E8F0;
}

.auth-feature-icon {
    width: 32px;
    height: 32px;
    background: rgba(5, 150, 105, 0.25);
    border: 1px solid rgba(52, 211, 153, 0.4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34D399;
    font-size: 16px;
    flex-shrink: 0;
}

/* Mobile Top Banner Card */
.mobile-hero-banner-card {
    display: none;
    width: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.mobile-hero-banner-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.mobile-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(6, 78, 59, 0.92) 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #FFFFFF;
}

.mobile-hero-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 4px;
    color: #FFFFFF;
}

.mobile-hero-title span {
    color: #34D399;
}

.mobile-hero-desc {
    font-size: 12px;
    color: #E2E8F0;
    line-height: 1.4;
}

/* Right Form Side */
.auth-form-side {
    padding: 44px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #FFFFFF;
}

.auth-form-header {
    margin-bottom: 28px;
}

.auth-form-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--auth-text-dark);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.auth-form-subtitle {
    font-size: 14px;
    color: var(--auth-text-muted);
}

/* Registration Multi-Step Progress Tracker */
.wizard-steps-container {
    margin-bottom: 28px;
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 19px;
    left: 0;
    right: 0;
    height: 4px;
    background: #F1F5F9;
    border-radius: 9999px;
    z-index: 1;
}

.wizard-progress-bar {
    position: absolute;
    top: 19px;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669, #0284C7);
    border-radius: 9999px;
    z-index: 2;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: 0%;
}

.wizard-step-item {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    color: #94A3B8;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.wizard-step-item.active .step-circle {
    border-color: #059669;
    background: #059669;
    color: #FFFFFF;
    box-shadow: var(--auth-shadow-glow);
    transform: scale(1.12);
}

.wizard-step-item.completed .step-circle {
    border-color: #059669;
    background: #ECFDF5;
    color: #059669;
    animation: checkPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes checkPop {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.step-label {
    font-size: 12px;
    font-weight: 700;
    color: #94A3B8;
    transition: color 0.3s ease;
}

.wizard-step-item.active .step-label {
    color: #059669;
}

.wizard-step-item.completed .step-label {
    color: #047857;
}

/* Form Steps */
.wizard-form-step {
    display: none;
}

.wizard-form-step.active {
    display: block;
    animation: slideInStep 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInStep {
    from {
        opacity: 0;
        transform: translateX(18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Input Fields & Form Controls */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid.single {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--auth-text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-label span.req {
    color: var(--auth-danger);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #94A3B8;
    font-size: 18px;
    pointer-events: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.form-control {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--auth-font-bn);
    color: var(--auth-text-dark);
    transition: all 0.25s ease;
}

.form-control.no-icon {
    padding-left: 16px;
}

.form-control:focus {
    background: #FFFFFF;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px var(--auth-primary-glow);
    outline: none;
}

.form-control:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--auth-primary);
    transform: scale(1.1);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
}

/* AUTOCOMPLETE SUGGESTION DROPDOWN STYLING */
.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
    max-height: 240px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    padding: 6px 0;
}

.autocomplete-dropdown.active {
    display: block;
    animation: fadeInDropdown 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.autocomplete-item {
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #0F172A;
    cursor: pointer;
    border-bottom: 1px solid #F8FAFC;
    transition: background 0.2s ease, color 0.2s ease;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: #ECFDF5;
    color: #059669;
}

.autocomplete-item-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.autocomplete-item-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 9999px;
    background: #F1F5F9;
    color: #64748B;
    flex-shrink: 0;
}

.autocomplete-item:hover .autocomplete-item-badge {
    background: #D1FAE5;
    color: #047857;
}

/* Password Toggle Icon */
.toggle-password-btn {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: color 0.2s ease;
}

.toggle-password-btn:hover {
    color: var(--auth-primary);
}

/* Custom Checkbox & Auto-Sync Toggle Card */
.sync-toggle-card {
    background: #ECFDF5;
    border: 1.5px dashed #A7F3D0;
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sync-toggle-card:hover {
    background: #D1FAE5;
    border-color: #059669;
}

.sync-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sync-icon {
    width: 36px;
    height: 36px;
    background: #059669;
    border-radius: 10px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.sync-text-title {
    font-size: 14px;
    font-weight: 700;
    color: #065F46;
}

.sync-text-desc {
    font-size: 12px;
    color: #047857;
}

/* Toggle Switch Styling */
.switch-input {
    display: none;
}

.switch-label {
    width: 48px;
    height: 26px;
    background: #CBD5E1;
    border-radius: 9999px;
    position: relative;
    cursor: pointer;
    transition: background 0.25s ease;
    flex-shrink: 0;
}

.switch-label::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.25s ease;
}

.switch-input:checked + .switch-label {
    background: #059669;
}

.switch-input:checked + .switch-label::after {
    transform: translateX(22px);
}

/* Summary Review Box */
.summary-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.summary-title {
    font-size: 16px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #F1F5F9;
    font-size: 14px;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-key {
    color: var(--auth-text-muted);
    font-weight: 600;
}

.summary-val {
    color: var(--auth-text-dark);
    font-weight: 700;
}

/* Form Action Buttons */
.auth-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-auth-primary {
    flex: 1;
    padding: 14px 24px;
    background: linear-gradient(135deg, #059669, #047857);
    color: #FFFFFF;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--auth-font-bn);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--auth-shadow-glow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-auth-primary:hover {
    background: linear-gradient(135deg, #047857, #065F46);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(5, 150, 105, 0.35);
}

.btn-auth-secondary {
    padding: 14px 20px;
    background: #F1F5F9;
    color: var(--auth-text-dark);
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--auth-font-bn);
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-auth-secondary:hover {
    background: #E2E8F0;
}

.btn-auth-demo {
    width: 100%;
    margin-top: 14px;
    padding: 12px 18px;
    background: #EFF6FF;
    border: 1.5px dashed #3B82F6;
    border-radius: 14px;
    color: #1D4ED8;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--auth-font-bn);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-auth-demo:hover {
    background: #DBEAFE;
    transform: translateY(-1px);
}

/* Footer Switch Link */
.auth-footer-text {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--auth-text-muted);
}

.auth-footer-text a {
    color: var(--auth-primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

/* Error Toast / Alert */
.auth-alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 10px;
    animation: alertPop 0.3s ease-out;
}

@keyframes alertPop {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-alert.danger {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
    display: flex;
}

.auth-alert.success {
    background: #ECFDF5;
    border: 1px solid #6EE7B7;
    color: #065F46;
    display: flex;
}

/* Modal Dialog for Forgot Password */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.auth-modal-overlay.active {
    display: flex;
}

.auth-modal-card {
    background: #FFFFFF;
    border-radius: 24px;
    width: 100%;
    max-width: 460px;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #F1F5F9;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748B;
    font-size: 16px;
    transition: all 0.2s ease;
}

.auth-modal-close:hover {
    background: #E2E8F0;
    color: #0F172A;
    transform: rotate(90deg);
}

/* ==========================================================================
   PRODUCTION VALIDATION, FEEDBACK & STRENGTH METER
   ========================================================================== */
.form-control.is-invalid {
    border-color: #EF4444 !important;
    background-color: #FEF2F2 !important;
}

.form-control.is-valid {
    border-color: #10B981 !important;
    background-color: #F0FDF4 !important;
}

.field-error-hint {
    display: none;
    font-size: 12px;
    color: #EF4444;
    font-weight: 600;
    margin-top: 5px;
    padding-left: 2px;
}

.field-error-hint.active {
    display: block;
    animation: hintShake 0.3s ease;
}

@keyframes hintShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* Password Strength Indicator */
.pass-strength-container {
    margin-top: 8px;
    display: none;
}

.pass-strength-container.active {
    display: block;
}

.strength-bar-track {
    height: 5px;
    width: 100%;
    background: #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 4px;
}

.strength-bar-fill.weak { width: 25%; background-color: #EF4444; }
.strength-bar-fill.fair { width: 50%; background-color: #F59E0B; }
.strength-bar-fill.good { width: 75%; background-color: #3B82F6; }
.strength-bar-fill.strong { width: 100%; background-color: #10B981; }

.strength-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #64748B;
    font-weight: 500;
}

.strength-text {
    font-weight: 700;
}
.strength-text.weak { color: #EF4444; }
.strength-text.fair { color: #F59E0B; }
.strength-text.good { color: #3B82F6; }
.strength-text.strong { color: #10B981; }

/* Password Match Indicator */
.pass-match-indicator {
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
    display: none;
}
.pass-match-indicator.match {
    display: block;
    color: #10B981;
}
.pass-match-indicator.mismatch {
    display: block;
    color: #EF4444;
}

/* Phone Status Badge */
.phone-status-badge {
    display: none;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}
.phone-status-badge.available {
    display: block;
    color: #10B981;
}
.phone-status-badge.taken {
    display: block;
    color: #EF4444;
}

/* Button Loading Spinner */
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    border-top-color: #FFFFFF;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-auth-primary:disabled,
.btn-auth-secondary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN FOR ALL MOBILE SCREENS (320px to 992px)
   ========================================================================== */
@media (max-width: 992px) {
    .auth-card-container {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }
    
    .auth-hero-side {
        display: none;
    }
    
    .mobile-hero-banner-card {
        display: block;
    }

    .auth-form-side {
        padding: 28px 24px;
    }
}

@media (max-width: 576px) {
    .auth-wrapper {
        padding: 76px 12px 24px;
    }

    .auth-navbar {
        padding: 14px 16px;
    }

    .auth-brand-title {
        font-size: 19px;
    }

    .auth-logo-badge {
        width: 38px;
        height: 38px;
        font-size: 18px;
        border-radius: 12px;
    }

    .auth-nav-link {
        padding: 8px 14px;
        font-size: 12px;
    }

    .auth-form-title {
        font-size: 22px;
    }

    .auth-form-subtitle {
        font-size: 13px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .wizard-steps {
        gap: 4px;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .step-label {
        font-size: 10px;
    }

    .form-control {
        padding: 12px 14px 12px 42px;
        font-size: 14px;
    }

    .input-icon {
        left: 14px;
        font-size: 16px;
    }

    .btn-auth-primary {
        padding: 12px 18px;
        font-size: 15px;
    }

    .sync-toggle-card {
        padding: 12px 14px;
    }

    .sync-text-title {
        font-size: 13px;
    }

    .sync-text-desc {
        font-size: 11px;
    }
}
