/* ═══════════════════════════════════════════════════════
   AUTH-THEME.CSS — Shared Government Portal Auth Styles
   Login · Student Register · Institute Register
   ═══════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700;800&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --gov-blue: #1a3c8f;
    --gov-blue-dk: #122d6e;
    --gov-orange: #e07b00;
    --gov-saffron: #f4914a;
    --gov-green: #10b981;
    --gov-red: #ef4444;
    --gov-bg: #f5f6fa;
    --gov-border: #d1d8e6;
    --gov-text: #1a1a2e;
    --gov-muted: #5a6373;
    --gov-surface: #fff;
}

body {
    font-family: 'Noto Sans', Arial, sans-serif;
    background: var(--gov-bg);
    min-height: 100vh;
    color: var(--gov-text);
}

/* ─── PAGE LOADER ─── */
#pageLoader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--gov-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: opacity .5s ease, visibility .5s ease;
}

#pageLoader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-emblem {
    position: relative;
    width: 90px;
    height: 90px;
}

.loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}

.loader-ring-1 {
    border-top-color: var(--gov-saffron);
    border-right-color: var(--gov-saffron);
    animation: spin1 1s linear infinite;
}

.loader-ring-2 {
    inset: 8px;
    border-bottom-color: rgba(255, 255, 255, .4);
    border-left-color: rgba(255, 255, 255, .4);
    animation: spin1 .7s linear infinite reverse;
}

.loader-ring-3 {
    inset: 18px;
    border-top-color: rgba(255, 255, 255, .7);
    animation: spin1 1.4s linear infinite;
}

.loader-center {
    position: absolute;
    inset: 28px;
    background: rgba(255, 255, 255, .12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

@keyframes spin1 {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, .85);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.loader-bar-wrap {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, .15);
    border-radius: 99px;
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gov-saffron), #fff, var(--gov-saffron));
    background-size: 200% 100%;
    border-radius: 99px;
    animation: barFill 1.6s ease forwards, shimmer 1.2s linear infinite;
}

@keyframes barFill {
    to {
        width: 100%;
    }
}

@keyframes shimmer {
    to {
        background-position: -200% 0;
    }
}

/* ─── TOP GOV STRIP ─── */
.gov-strip {
    background: var(--gov-blue);
    color: rgba(255, 255, 255, .82);
    font-size: 11px;
    padding: 5px 0;
    border-bottom: 3px solid var(--gov-saffron);
    font-family: 'Noto Sans', sans-serif;
}

/* ─── HEADER ─── */
.gov-header {
    background: #fff;
    border-bottom: 3px solid var(--gov-orange);
    padding: 12px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    height: 50px;
    width: 50px;
    object-fit: contain;
}

.logo-placeholder {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    background: var(--gov-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    border: 2px solid var(--gov-saffron);
    flex-shrink: 0;
}

.logo-text h1 {
    font-size: 16px;
    font-weight: 800;
    color: var(--gov-blue);
    margin: 0;
}

.logo-text p {
    font-size: 11px;
    color: var(--gov-muted);
    margin: 0;
}

.back-link {
    font-size: 13px;
    color: var(--gov-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.back-link:hover {
    color: var(--gov-orange);
}

/* ─── PAGE SPLIT LAYOUT ─── */
.auth-page {
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - 108px);
}

/* ─── LEFT INFO PANEL ─── */
.auth-left {
    width: 270px;
    flex-shrink: 0;
    background: var(--gov-blue);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 3px solid var(--gov-saffron);
    position: sticky;
    top: 0;
    align-self: flex-start;
    min-height: calc(100vh - 108px);
}

.left-icon {
    font-size: 52px;
    margin-bottom: 18px;
    text-align: center;
    line-height: 1;
}

.left-title {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    text-align: center;
}

.left-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, .68);
    line-height: 1.65;
    margin-bottom: 30px;
    text-align: center;
}

/* Step indicators */
.auth-step {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    margin-bottom: 0;
    cursor: pointer;
    padding: 6px 4px;
    border-radius: 8px;
    transition: background .2s;
}

.auth-step:hover {
    background: rgba(255, 255, 255, .07);
}

.as-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .6);
    border: 2px solid rgba(255, 255, 255, .2);
    transition: all .25s;
}

.as-label {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .6);
    font-weight: 600;
    transition: color .25s;
    line-height: 1.3;
}

.step-conn {
    width: 2px;
    height: 16px;
    background: rgba(255, 255, 255, .12);
    margin: 2px 0 2px 13px;
}

.auth-step.active .as-num {
    background: var(--gov-saffron);
    color: #fff;
    border-color: var(--gov-saffron);
    box-shadow: 0 0 0 3px rgba(244, 145, 74, .25);
}

.auth-step.active .as-label {
    color: #fff;
}

.auth-step.done .as-num {
    background: var(--gov-green);
    color: #fff;
    border-color: var(--gov-green);
}

.auth-step.done .as-label {
    color: rgba(255, 255, 255, .8);
}

.left-footer-info {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    width: 100%;
}

.lfi-item {
    font-size: 11.5px;
    color: rgba(255, 255, 255, .52);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ─── RIGHT FORM PANEL ─── */
.auth-right {
    flex: 1;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--gov-bg);
    overflow-x: hidden;
}

.auth-right-inner {
    width: 100%;
    max-width: 680px;
}

/* ─── FORM STEP SECTIONS ─── */
.step-sec {
    display: none;
}

.step-sec.active {
    display: block;
    animation: fadeInUp .3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── FORM CARD ─── */
.form-card {
    background: var(--gov-surface);
    border-radius: 12px;
    border: 1px solid var(--gov-border);
    border-top: 4px solid var(--gov-blue);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .07);
    overflow: hidden;
    margin-bottom: 16px;
}

.form-card-head {
    padding: 16px 22px;
    border-bottom: 1px solid var(--gov-border);
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fafbfc;
}

.fch-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(26, 60, 143, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--gov-blue);
    flex-shrink: 0;
}

.fch-title {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--gov-text);
}

.fch-sub {
    font-size: 11.5px;
    color: var(--gov-muted);
    margin: 0;
}

.form-card-body {
    padding: 22px;
}

/* ─── INPUTS ─── */
.f-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--gov-text);
    margin-bottom: 5px;
    display: block;
}

.req {
    color: #dc2626;
    margin-left: 2px;
}

.f-wrap {
    position: relative;
}

.f-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gov-muted);
    font-size: 13px;
    pointer-events: none;
    z-index: 1;
}

.f-icon-top {
    top: 13px;
    transform: none;
}

.f-inp {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1.5px solid var(--gov-border);
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--gov-text);
    background: #fff;
    outline: none;
    font-family: 'Noto Sans', sans-serif;
    transition: border-color .18s, box-shadow .18s;
}

.f-inp:focus {
    border-color: var(--gov-blue);
    box-shadow: 0 0 0 3px rgba(26, 60, 143, .08);
}

.f-inp.no-icon {
    padding-left: 12px;
}

.f-inp.pw-inp {
    padding-right: 42px;
}

textarea.f-inp {
    padding-left: 12px;
    resize: vertical;
    min-height: 68px;
}

select.f-inp {
    cursor: pointer;
}

.f-hint {
    font-size: 11.5px;
    color: var(--gov-muted);
    margin-top: 4px;
}

.pw-toggle-btn {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gov-muted);
    font-size: 13px;
    padding: 2px;
}

/* ─── PASSWORD STRENGTH ─── */
.pw-strength-bar-wrap {
    height: 4px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
    margin-top: 6px;
}

.pw-strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    transition: width .3s, background .3s;
}

.pw-strength-lbl {
    font-size: 11px;
    margin-top: 3px;
}

/* ─── INFO BOX ─── */
.info-note {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 12.5px;
    color: #1e40af;
}

.warn-note {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 12.5px;
    color: #92400e;
}

/* ─── PHOTO UPLOAD ─── */
.photo-zone {
    border: 2px dashed var(--gov-border);
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    position: relative;
    flex: 1;
}

.photo-zone:hover {
    border-color: var(--gov-blue);
    background: #f0f4ff;
}

.photo-zone input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.photo-preview-img {
    width: 75px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--gov-border);
    display: none;
}

/* ─── BUTTONS ─── */
.btn-auth {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Noto Sans', sans-serif;
    transition: filter .18s, transform .1s, box-shadow .18s;
    text-decoration: none;
    line-height: 1;
}

.btn-auth:hover:not(:disabled) {
    filter: brightness(.9);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}

.btn-auth:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

.btn-blue {
    background: var(--gov-blue);
    color: #fff;
}

.btn-green {
    background: var(--gov-green);
    color: #fff;
}

.btn-outline {
    background: #fff;
    color: var(--gov-blue);
    border: 2px solid var(--gov-blue);
}

.btn-outline:hover {
    background: #f0f4ff;
}

.btn-orange {
    background: var(--gov-orange);
    color: #fff;
}

/* ─── ERROR BOX ─── */
.error-box {
    background: #fde8e8;
    border: 1px solid #f5a5a5;
    border-radius: 10px;
    padding: 14px 16px;
    color: #a91d27;
    font-size: 13px;
    margin-bottom: 18px;
}

.error-box ul {
    margin: 6px 0 0 16px;
    padding: 0;
}

/* ─── SUCCESS CARD ─── */
.success-card {
    background: var(--gov-surface);
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
    border: 1px solid var(--gov-border);
    border-top: 4px solid var(--gov-green);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
}

.success-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.4rem;
}

/* ─── BOTTOM LINK BAR ─── */
.form-link-bar {
    text-align: center;
    font-size: 13px;
    color: var(--gov-muted);
}

.form-link-bar a {
    color: var(--gov-blue);
    font-weight: 700;
    text-decoration: none;
}

.form-link-bar a:hover {
    color: var(--gov-orange);
}

.form-link-bar .sep {
    color: var(--gov-border);
    margin: 0 8px;
}

/* ─── FOOTER ─── */
.auth-footer {
    text-align: center;
    font-size: 11.5px;
    color: var(--gov-muted);
    padding: 14px;
    background: #fff;
    border-top: 1px solid var(--gov-border);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 767px) {
    .auth-left {
        display: none !important;
    }

    .auth-right {
        padding: 14px 10px;
    }

    .form-card-body {
        padding: 16px;
    }

    .auth-page {
        min-height: unset;
    }
}