/* Visa Recommendation Portal — Landing / Auth Page */

:root {
    --navy: #0b2344;
    --navy-deep: #07182c;
    --navy-mid: #153a66;
    --navy-light: #1f4f80;
    --crimson: #b91c2c;
    --crimson-dark: #961623;
    --gold: #c9a227;
    --gold-soft: #e8c96a;
    --white: #ffffff;
    --gray-50: #f5f7fa;
    --gray-100: #eef2f6;
    --gray-200: #dde3ea;
    --gray-400: #8b98a8;
    --gray-600: #4a5568;
    --gray-800: #1a2332;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-lg: 0 12px 40px rgba(7, 24, 44, 0.14);
    --font: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.auth-body {
    font-family: var(--font);
    background: var(--gray-50);
    color: var(--gray-800);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

/* Site header */
.auth-site-header {
    background: #0b2344;
    color: #fff;
    border-bottom: 2px solid #b91c2c;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 2px 10px rgba(7, 24, 44, 0.12);
    position: sticky;
    top: 0;
    z-index: 200;
}

.auth-site-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    min-height: 88px;
}

.auth-site-header-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.auth-site-header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 0.5rem;
}

.auth-site-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.auth-site-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    min-width: 0;
}

.auth-site-brand:hover,
.auth-site-brand:focus,
.auth-site-brand:active {
    text-decoration: none;
    color: inherit;
    outline: none;
}

.auth-site-brand:hover .auth-site-govt,
.auth-site-brand:hover .auth-site-dept,
.auth-site-brand:hover .auth-site-portal,
.auth-site-brand:hover .auth-site-ministry,
.auth-site-brand:hover strong,
.auth-site-brand:hover small {
    color: inherit;
    opacity: inherit;
    text-decoration: none;
}

.auth-site-brand img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
    pointer-events: none;
}

.auth-site-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    line-height: 1.25;
}

.auth-site-govt {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(232, 201, 106, 0.95);
    margin: 0;
    white-space: nowrap;
}

.auth-site-ministry {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    white-space: nowrap;
}

.auth-site-dept,
.auth-site-brand-text strong.auth-site-dept,
.auth-site-brand-text strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin: 0;
    white-space: nowrap;
}

.auth-site-portal-title {
    display: inline-block;
    font-size: clamp(1.15rem, 1.8vw, 1.35rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.auth-site-portal-title:hover,
.auth-site-portal-title:focus {
    color: #fff;
    text-decoration: none;
}

.auth-site-portal,
.auth-site-brand-text strong.auth-site-portal {
    display: none;
}

.auth-site-brand-text small {
    display: none;
}

.auth-site-header-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.auth-site-header-verify-btn {
    display: none;
}

.auth-site-nav {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-wrap: nowrap;
}

.auth-site-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.auth-site-nav-link i {
    font-size: 0.9rem;
}

.auth-site-nav-link:hover,
.auth-site-nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
}

.auth-site-nav-link.active { font-weight: 600; }

.auth-site-nav-utility {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.36rem 0.7rem;
    margin-left: 0.15rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.auth-site-nav-utility i {
    font-size: 0.88rem;
    opacity: 0.95;
}

.auth-site-nav-verify {
    border: 1px solid rgba(232, 201, 106, 0.45);
    background: rgba(201, 162, 39, 0.1);
    color: #e8c96a;
}

.auth-site-nav-verify:hover,
.auth-site-nav-verify.active {
    background: rgba(201, 162, 39, 0.2);
    border-color: rgba(232, 201, 106, 0.75);
    color: #f3d98b;
    text-decoration: none;
}

.auth-site-nav-manual {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
}

.auth-site-nav-manual:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    text-decoration: none;
}

.auth-site-nav-manual i {
    color: #fc8181;
}

.auth-site-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.95rem;
    background: #b91c2c;
    color: #fff;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    border-radius: 6px;
    margin-left: 0.35rem;
    transition: background 0.15s;
    white-space: nowrap;
}

.auth-site-nav-btn:hover {
    background: #961623;
    color: #fff;
    text-decoration: none;
}

.auth-site-nav-btn.active {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28);
}

.auth-site-header-verify-btn.active {
    box-shadow: none;
}

.auth-site-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.auth-main-split {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.auth-site-main.auth-main-split {
    display: flex;
    flex-direction: column;
}

.auth-site-footer {
    background: var(--navy-deep);
    color: rgba(255,255,255,0.75);
    border-top: 3px solid var(--crimson);
}

.auth-site-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.25rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.auth-site-footer-brand strong {
    display: block;
    color: #fff;
    font-size: 1.05rem;
}

.auth-site-footer-brand span {
    font-size: 0.9rem;
    opacity: 0.65;
}

.auth-site-footer-contact {
    opacity: 0.85;
    font-size: 0.95rem;
}
.auth-site-footer-contact i { color: var(--gold); margin-right: 0.35rem; }
.auth-site-footer-contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}
.auth-site-footer-contact a:hover {
    color: #fff;
    text-decoration: underline;
}
.auth-site-footer-copy { opacity: 0.55; font-size: 0.9rem; }

/* Logged-in user menu (portal pages) */
.auth-site-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    position: relative;
    overflow: visible;
}

.auth-site-user-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.auth-site-user-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
}

.auth-site-user-toggle .fa-user-circle {
    font-size: 1.25rem;
}

.auth-site-user-name {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-site-user-role {
    background: var(--gold);
    color: var(--navy-deep);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.auth-site-user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 200;
    overflow: hidden;
}

.auth-site-user-dropdown.open { display: block; }

.auth-site-user-dropdown a,
.auth-site-user-dropdown .auth-site-user-logout {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.9rem 1.1rem;
    color: var(--gray-800);
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.15s;
}

.auth-site-user-dropdown a:last-child,
.auth-site-user-dropdown .auth-site-user-logout:last-child { border-bottom: none; }
.auth-site-user-dropdown a:hover,
.auth-site-user-dropdown .auth-site-user-logout:hover { background: var(--gray-50); }

.auth-site-user-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.auth-site-user-dropdown-head {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.auth-site-user-dropdown-head strong {
    display: block;
    font-size: 1rem;
    color: var(--gray-800);
}

.auth-site-user-dropdown-head span {
    display: block;
    font-size: 0.88rem;
    color: var(--gray-600);
    margin-top: 0.2rem;
}

.portal-notifications {
    position: relative;
    overflow: visible;
}

.portal-notifications-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
}

.portal-notifications-toggle:hover,
.portal-notifications-toggle.open {
    background: rgba(255, 255, 255, 0.16);
}

.portal-notifications-toggle .fa-bell {
    font-size: 1.15rem;
}

.portal-notifications-toggle.has-unread .fa-bell {
    animation: portal-bell-nudge 1.6s ease-in-out infinite;
}

.portal-notifications-badge {
    position: absolute;
    top: -0.3rem;
    right: -0.3rem;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 0.32rem;
    border-radius: 999px;
    background: #e41e3f;
    color: #fff;
    border: 2px solid #0b2344;
    box-shadow: 0 0 0 1px rgba(228, 30, 63, 0.35);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    pointer-events: none;
}

.portal-notifications-badge[hidden] {
    display: none !important;
}

@keyframes portal-bell-nudge {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(12deg); }
    20% { transform: rotate(-10deg); }
    30% { transform: rotate(8deg); }
    40% { transform: rotate(0deg); }
}

.portal-notifications-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    width: min(380px, 92vw);
    max-height: 420px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    z-index: 1200;
}

.portal-notifications-dropdown.open {
    display: block;
}

.portal-notifications-dropdown-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    background: #fafbfc;
}

.portal-notifications-dropdown-head strong {
    color: var(--navy);
    font-size: 0.95rem;
}

.portal-notifications-mark-all {
    border: none;
    background: none;
    color: #e41e3f;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.portal-notifications-list {
    max-height: 340px;
    overflow-y: auto;
}

.portal-notifications-item {
    position: relative;
    display: block;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.portal-notifications-item:hover {
    background: var(--gray-50);
    text-decoration: none;
    color: inherit;
}

.portal-notifications-item.is-unread {
    background: #fff5f5;
    border-left: 3px solid #e41e3f;
    padding-left: calc(1rem - 3px);
}

.portal-notifications-item.is-unread strong {
    color: #0b2344;
}

.portal-notifications-item.is-unread::after {
    content: '';
    position: absolute;
    top: 1rem;
    right: 0.85rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #e41e3f;
}

.portal-notifications-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.portal-notifications-item-head strong {
    color: var(--navy);
    font-size: 0.9rem;
    line-height: 1.35;
}

.portal-notifications-item time {
    color: var(--gray-500);
    font-size: 0.72rem;
    white-space: nowrap;
}

.portal-notifications-item p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.82rem;
    line-height: 1.45;
}

.portal-notifications-item-meta {
    margin-top: 0.35rem;
    color: var(--gray-500);
    font-size: 0.72rem;
}

.portal-notifications-empty {
    margin: 0;
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.88rem;
}

.auth-sub-hero { padding: 2.5rem 3rem; }

.auth-sub-hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-sub-panel { padding: 2.5rem 2rem; }

.auth-feature-grid-compact { max-width: 100%; }

/* Login page — left panel user manual (independent scroll) */
.auth-sub-page:has(.auth-hero-manual) {
    flex: 1;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    align-items: stretch;
    display: grid;
}

.auth-hero-manual {
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

.auth-sub-page:has(.auth-hero-manual) .auth-sub-panel {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    align-self: stretch;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem 2.25rem 2.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(10, 31, 61, 0.22) transparent;
}

.auth-sub-page:has(.auth-hero-manual) .auth-sub-panel::-webkit-scrollbar {
    width: 6px;
}

.auth-sub-page:has(.auth-hero-manual) .auth-sub-panel::-webkit-scrollbar-thumb {
    background: rgba(10, 31, 61, 0.22);
    border-radius: 999px;
}

.auth-sub-page:has(.auth-hero-manual) .auth-panel-inner {
    margin: 1.35rem 0;
}

.auth-manual-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    justify-content: flex-start;
    padding-right: 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.auth-manual-scroll::-webkit-scrollbar {
    width: 6px;
}

.auth-manual-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.28);
    border-radius: 999px;
}

.auth-hero-manual h2 {
    font-size: clamp(1.65rem, 2.4vw, 2.2rem);
    line-height: 1.15;
    margin-bottom: 0.85rem;
}

.auth-manual-lead {
    font-size: 0.98rem;
    line-height: 1.55;
    opacity: 0.88;
    max-width: 560px;
    margin-bottom: 1.35rem;
}

.auth-manual-section {
    margin-bottom: 1.35rem;
}

.auth-manual-section-compact {
    margin-bottom: 1rem;
}

.auth-manual-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold-soft);
}

.auth-manual-heading i {
    font-size: 0.9rem;
    opacity: 0.9;
}

.auth-manual-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.auth-manual-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.72rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

.auth-manual-step-num {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--crimson);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

.auth-manual-step-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.auth-manual-step-body strong {
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.35;
}

.auth-manual-step-body span {
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
}

.auth-manual-docs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.auth-manual-docs li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.86rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}

.auth-manual-docs li i {
    color: var(--gold-soft);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.auth-manual-note {
    margin: 0.75rem 0 0;
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    background: rgba(212, 168, 67, 0.12);
    border: 1px solid rgba(212, 168, 67, 0.28);
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
}

.auth-manual-note i {
    color: var(--gold-soft);
    margin-right: 0.35rem;
}

.auth-manual-text {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
}

.auth-manual-text a {
    color: var(--gold-soft);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-manual-text a:hover {
    color: #fff;
}

.auth-manual-pdf {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.auth-manual-pdf:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(212, 168, 67, 0.45);
    color: #fff;
    text-decoration: none;
}

.auth-manual-pdf > i {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(212, 168, 67, 0.18);
    color: var(--gold-soft);
    font-size: 1rem;
    flex-shrink: 0;
}

.auth-manual-pdf span {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.auth-manual-pdf strong {
    font-size: 0.9rem;
    font-weight: 650;
}

.auth-manual-pdf small {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.68);
}

.auth-hero-manual .auth-hero-footer {
    flex-shrink: 0;
    line-height: 1.5;
}

.auth-hero-manual .auth-hero-footer strong {
    color: rgba(255, 255, 255, 0.92);
}

.auth-hero-footer a {
    color: var(--gold-soft);
    text-decoration: none;
}

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

@media (max-width: 960px) {
    .auth-main-split {
        overflow: visible;
    }

    .auth-sub-page {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-sub-hero {
        padding: 2rem 1.5rem;
    }

    .auth-sub-panel {
        padding: 2rem 1.25rem;
        border-left: none;
        border-top: 1px solid rgba(13, 39, 71, 0.06);
    }

    .auth-site-header-inner {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.85rem 1rem;
        min-height: 0;
        text-align: left;
    }

    .auth-site-header-left,
    .auth-site-header-center,
    .auth-site-header-right {
        justify-content: flex-start;
        width: 100%;
    }

    .auth-site-header-center {
        order: -1;
        justify-content: center;
        padding: 0 0 0.55rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .auth-site-brand img {
        width: 48px;
        height: 48px;
    }

    .auth-site-govt,
    .auth-site-ministry {
        font-size: 0.8125rem;
    }

    .auth-site-dept,
    .auth-site-brand-text strong.auth-site-dept,
    .auth-site-brand-text strong {
        font-size: 1.125rem;
    }

    .auth-site-portal-title {
        white-space: normal;
        text-align: center;
        font-size: 1.125rem;
    }

    .auth-site-header-right {
        justify-content: flex-end;
    }

    .auth-site-govt,
    .auth-site-dept,
    .auth-site-ministry {
        white-space: normal;
    }

    .auth-site-nav {
        width: auto;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .auth-site-footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

.auth-page {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(440px, 0.88fr);
    flex: 1;
    background: var(--gray-50);
}

.auth-main-split .auth-page,
.auth-sub-page {
    min-height: calc(100vh - 148px);
    grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
}

@media (max-width: 960px) {
    .auth-page { grid-template-columns: 1fr; }
    .auth-hero { min-height: auto; padding: 2.5rem 1.5rem; }
}

.auth-hero {
    background:
        linear-gradient(160deg, #061526 0%, #0b2748 42%, #143d6b 78%, #1a4f7c 100%);
    color: var(--white);
    padding: 3.25rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 12% 88%, rgba(185, 28, 44, 0.28) 0%, transparent 42%),
        radial-gradient(ellipse at 88% 10%, rgba(201, 162, 39, 0.14) 0%, transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 28%);
    pointer-events: none;
}

.auth-hero::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    right: -140px;
    bottom: -160px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    box-shadow:
        0 0 0 48px rgba(255,255,255,0.02),
        0 0 0 96px rgba(255,255,255,0.015);
    pointer-events: none;
}

.auth-hero > * { position: relative; z-index: 1; }

.auth-hero-brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.auth-hero-brand img {
    width: 78px;
    height: 78px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
}

.auth-hero-brand-text .govt {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.25rem;
}

.auth-hero-brand-text h1 {
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.2rem;
}

.auth-hero-brand-text .loc {
    font-size: 0.8rem;
    opacity: 0.75;
}

.auth-hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem 0 2.5rem;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    padding: 0.42rem 0.8rem;
    margin-bottom: 1.35rem;
    border: 1px solid rgba(212, 168, 67, 0.42);
    border-radius: 999px;
    background: rgba(212, 168, 67, 0.10);
    color: var(--gold-soft);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-hero-content h2 {
    font-size: clamp(2.25rem, 4vw, 4.25rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.045em;
    margin-bottom: 1.25rem;
}

.auth-hero-content h2 span { color: var(--gold); }

.auth-hero-content p {
    font-size: 1.08rem;
    opacity: 0.85;
    max-width: 560px;
    margin-bottom: 2.25rem;
}

.auth-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    max-width: 720px;
}

.auth-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-height: 118px;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 16px;
    background: rgba(255,255,255,0.075);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.auth-feature-card i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(212, 168, 67, 0.16);
    color: var(--gold-soft);
    font-size: 1rem;
}

.auth-feature-card strong {
    display: block;
    font-size: 0.88rem;
    margin-bottom: 0.25rem;
}

.auth-feature-card small {
    display: block;
    color: rgba(255,255,255,0.68);
    font-size: 0.75rem;
    line-height: 1.45;
}

.auth-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-step {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
}

.auth-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--crimson);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-step-text {
    font-size: 0.875rem;
    font-weight: 500;
}

.auth-step-text small {
    display: block;
    font-size: 0.75rem;
    opacity: 0.65;
    font-weight: 400;
}

.auth-hero-footer {
    font-size: 0.8rem;
    opacity: 0.74;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1.25rem;
}

.auth-hero-footer a {
    color: var(--gold);
    text-decoration: none;
}

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

/* Landing page — centered official portal */
.auth-body-landing {
    background: #eef2f6;
}

.auth-main-landing {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.auth-landing {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem 3rem;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 90% 70% at 50% -10%, rgba(21, 58, 102, 0.14), transparent 55%),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(185, 28, 44, 0.06), transparent 45%),
        linear-gradient(180deg, #f4f7fb 0%, #e8eef5 100%);
}

.auth-landing::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.35) 100%);
    pointer-events: none;
}

.auth-landing-stage {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-landing-intro {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-landing-seal {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 12px rgba(7, 24, 44, 0.18));
}

.auth-landing-gov {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5a6b7d;
}

.auth-landing-intro h1 {
    margin: 0 0 0.4rem;
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.55rem, 3.5vw, 1.95rem);
    font-weight: 700;
    line-height: 1.25;
    color: #0b2344;
    letter-spacing: -0.01em;
}

.auth-landing-tagline {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 500;
    color: #b91c2c;
}

.auth-landing-card {
    width: 100%;
    padding: 1.65rem 1.75rem 1.85rem;
    background: #fff;
    border: 1px solid rgba(11, 35, 68, 0.08);
    border-radius: 14px;
    box-shadow:
        0 1px 2px rgba(7, 24, 44, 0.04),
        0 12px 32px rgba(7, 24, 44, 0.08);
}

.auth-landing-card .auth-panel-inner::before {
    display: none;
}

.auth-landing-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    padding: 0.3rem;
    background: #f0f3f7;
    border-radius: 10px;
}

.auth-landing-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.62rem 0.5rem;
    border-radius: 8px;
    color: #5a6b7d;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.auth-landing-tab:hover {
    color: #0b2344;
    text-decoration: none;
}

.auth-landing-tab.active {
    background: #fff;
    color: #0b2344;
    box-shadow: 0 1px 3px rgba(7, 24, 44, 0.1);
    text-decoration: none;
}

.auth-landing-card .auth-panel-title {
    margin-bottom: 1.25rem;
    text-align: left;
}

.auth-landing-card .auth-panel-title h2 {
    margin: 0 0 0.3rem;
    font-size: 1.28rem;
    font-weight: 700;
    color: #0b2344;
    letter-spacing: -0.015em;
}

.auth-landing-card .auth-panel-title p {
    margin: 0;
    font-size: 0.9rem;
    color: #5a6b7d;
    line-height: 1.45;
}

.auth-landing-card .auth-btn-primary {
    margin-top: 0.35rem;
    border-radius: 8px;
    background: #0b2344;
    box-shadow: 0 2px 8px rgba(11, 35, 68, 0.22);
}

.auth-landing-card .auth-btn-primary:hover {
    background: #153a66;
}

.auth-landing-note {
    margin: 1.35rem 0 0;
    text-align: center;
    font-size: 0.86rem;
    color: #5a6b7d;
    line-height: 1.55;
}

.auth-landing-note strong {
    color: #0b2344;
    font-weight: 600;
}

.auth-landing-note a {
    color: #0b2344;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-landing-note a:hover {
    color: #b91c2c;
}

@media (max-width: 560px) {
    .auth-landing {
        padding: 1.5rem 0.85rem 2rem;
        align-items: flex-start;
    }

    .auth-landing-card {
        padding: 1.35rem 1.15rem 1.5rem;
    }

    .auth-landing-seal {
        width: 60px;
        height: 60px;
    }

    .auth-landing-tabs {
        gap: 0.2rem;
    }

    .auth-landing-tab {
        font-size: 0.82rem;
        padding: 0.55rem 0.25rem;
    }
}

.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2.25rem;
    background:
        linear-gradient(180deg, #fbfcfe 0%, #ffffff 40%, #ffffff 100%);
    border-left: 1px solid rgba(13, 39, 71, 0.06);
}

.auth-panel-inner {
    width: 100%;
    max-width: 460px;
    position: relative;
}

.auth-panel-inner::before {
    content: '';
    position: absolute;
    inset: -1.25rem;
    z-index: -1;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(13, 39, 71, 0.06);
    box-shadow: 0 10px 36px rgba(7, 24, 44, 0.07);
}

.auth-panel-toplinks {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.auth-toplink {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--navy);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: 99px;
    transition: background 0.15s;
}

.auth-toplink:hover {
    background: var(--gray-50);
    color: var(--navy);
    text-decoration: none;
}

.auth-panel-title {
    margin-bottom: 0.25rem;
}

.auth-panel-title h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.auth-panel-eyebrow {
    display: block;
    color: var(--crimson);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.35rem;
}

.auth-panel-title p {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.auth-tabs {
    display: flex;
    background: var(--gray-100);
    border-radius: 14px;
    padding: 5px;
    margin: 1.5rem 0 1.75rem;
    gap: 4px;
}

.auth-tab {
    flex: 1;
    padding: 0.65rem 1rem;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab.active {
    background: var(--white);
    color: var(--navy);
    box-shadow: 0 6px 18px rgba(10,31,61,0.10);
}

.auth-form-panel { display: none; }
.auth-form-panel.active { display: block; }

.auth-form-panel .auth-panel-title {
    margin-bottom: 1.35rem;
}

.auth-form-subtitle {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.auth-field { margin-bottom: 1.1rem; }

.auth-field label {
    display: block;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.4rem;
}

.auth-field label .req { color: var(--crimson); }

.auth-field-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--gray-400);
    line-height: 1.4;
}

.auth-input {
    width: 100%;
    padding: 0.78rem 0.95rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--gray-800);
    background: var(--white);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-input:focus {
    outline: none;
    border-color: var(--navy-light);
    box-shadow: 0 0 0 3px rgba(30, 73, 118, 0.12);
}

.auth-input::placeholder { color: var(--gray-400); }

.auth-error {
    font-size: 0.78rem;
    color: var(--crimson);
    margin-top: 0.3rem;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.825rem;
    color: var(--gray-600);
    cursor: pointer;
}

.auth-forgot {
    font-size: 0.825rem;
    color: var(--navy-light);
    text-decoration: none;
    font-weight: 500;
}

.auth-forgot:hover { text-decoration: underline; }

.auth-form-switch {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.auth-form-switch-link {
    color: var(--navy-light);
    font-weight: 600;
    text-decoration: none;
}

.auth-form-switch-link:hover {
    color: var(--crimson);
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 0.88rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.auth-btn:hover {
    transform: translateY(-1px);
}

.auth-btn-primary {
    background: var(--crimson);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(185, 28, 44, 0.28);
}

.auth-btn-primary:hover { background: var(--crimson-dark); }

.auth-btn-secondary {
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(10, 31, 61, 0.25);
}

.auth-btn-secondary:hover { background: var(--navy-mid); }

.auth-alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.auth-alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.auth-alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

.auth-help {
    margin-top: 1.75rem;
    padding: 1rem 1.15rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.825rem;
    color: var(--gray-600);
}

.auth-help strong { color: var(--navy); }

.auth-copy {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-400);
}

@media (max-width: 1180px) {
    .auth-feature-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .auth-feature-card {
        min-height: auto;
    }
}

@media (max-width: 960px) {
    .auth-page {
        background: var(--white);
    }

    .auth-panel {
        padding: 2rem 1.25rem 2.5rem;
    }

    .auth-panel-inner::before {
        display: none;
    }

    .auth-hero-content {
        padding: 2.5rem 0 2rem;
    }
}

@media (max-width: 520px) {
    .auth-hero {
        padding: 2rem 1.25rem;
    }

    .auth-hero-brand img {
        width: 58px;
        height: 58px;
    }

    .auth-hero-brand-text h1 {
        font-size: 1rem;
    }

    .auth-hero-footer {
        line-height: 1.8;
    }

    .auth-panel-toplinks {
        justify-content: flex-start;
    }
}

.auth-standalone {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(160deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

.auth-standalone-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
}

.auth-standalone-header {
    background: var(--navy);
    color: var(--white);
    padding: 1.25rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.auth-standalone-body { padding: 1.75rem 1.5rem; }

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    font-size: 0.825rem;
    color: var(--navy-light);
    text-decoration: none;
}

.auth-back-link:hover { text-decoration: underline; }

.auth-captcha {
    margin: 0.25rem 0 1.25rem;
}

.auth-captcha .g-recaptcha {
    transform-origin: left top;
}

.auth-track-card {
    max-width: 480px;
}

.auth-track-intro {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.55;
}

@media (max-width: 520px) {
    .auth-captcha .g-recaptcha {
        transform: scale(0.92);
        transform-origin: left top;
    }
}

/* Password reset / standalone flow pages */
.auth-flow-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(circle at top left, rgba(30, 73, 118, 0.10), transparent 34%),
        radial-gradient(circle at bottom right, rgba(200, 16, 46, 0.08), transparent 30%),
        linear-gradient(160deg, #eef2f7 0%, #f8fafc 48%, #edf2f8 100%);
}

.auth-flow-shell {
    width: 100%;
    max-width: 520px;
}

.auth-flow-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 0 0.25rem;
}

.auth-flow-brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.auth-flow-brand strong {
    display: block;
    color: var(--navy);
    font-size: 0.95rem;
    line-height: 1.35;
}

.auth-flow-govt {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--crimson);
    margin-bottom: 0.15rem;
}

.auth-flow-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(10, 31, 61, 0.12);
    padding: 2rem 1.75rem 1.75rem;
}

.auth-flow-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 20px rgba(10, 31, 61, 0.18);
}

.auth-flow-heading h1 {
    font-size: 1.75rem;
    color: var(--navy);
    margin: 0 0 0.5rem;
    letter-spacing: -0.03em;
}

.auth-flow-heading p {
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.auth-flow-form {
    margin-bottom: 0.5rem;
}

.auth-flow-notes {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-200);
}

.auth-flow-note {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.82rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.auth-flow-note i {
    color: var(--navy-light);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.auth-flow-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.auth-flow-footer {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-600);
}

.auth-flow-footer strong {
    color: var(--navy);
}

.auth-alert i {
    margin-right: 0.35rem;
}

/* Logged-in portal: larger content typography.
   portal.css sets html { font-size: 12px }, so rem-based header/footer
   must be scaled (~16/12) to match the guest auth header. */
body.portal-body {
    font-size: 20px;
}

.portal-body .auth-site-header-inner {
    padding: 0.55rem 1.5rem;
    min-height: 64px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.portal-body .auth-site-brand img {
    width: 44px;
    height: 44px;
}

.portal-body a.auth-site-brand:hover,
.portal-body a.auth-site-brand:focus,
.portal-body a.auth-site-brand:active {
    text-decoration: none;
    color: inherit;
}

.portal-body .auth-site-govt {
    font-size: 0.96rem; /* ~0.72rem at 16px root */
}

.portal-body .auth-site-ministry {
    display: block;
    font-size: 1.04rem; /* ~0.78rem at 16px root */
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

.portal-body .auth-site-brand-text strong,
.portal-body .auth-site-dept {
    font-size: 1.23rem; /* ~0.92rem at 16px root */
    color: #fff;
}

.portal-body .auth-site-portal-title {
    font-size: clamp(1.27rem, 2.13vw, 1.6rem); /* ~0.95–1.2rem at 16px root */
}

.portal-body .auth-site-brand-text small {
    display: none;
}

.portal-body .auth-site-nav-link {
    font-size: 1.15rem;
    padding: 0.4rem 0.75rem;
}

.portal-body .auth-site-nav-link i { font-size: 1.2rem; }

.portal-body .auth-site-nav-btn {
    font-size: 1.15rem;
    padding: 0.42rem 0.95rem;
}

.portal-body .auth-site-header-verify-btn {
    display: none;
}

.portal-body .auth-site-user-toggle {
    font-size: 1.17rem; /* ~0.88rem at 16px root */
    padding: 0.38rem 0.75rem;
}

.portal-body .auth-site-user-toggle .fa-user-circle { font-size: 1.55rem; }
.portal-body .auth-site-user-role { font-size: 0.91rem; }
.portal-body .auth-site-user-dropdown a { font-size: 1.33rem; }
.portal-body .auth-site-user-dropdown-head strong { font-size: 1.33rem; }
.portal-body .portal-notifications-toggle .fa-bell { font-size: 1.55rem; }
.portal-body .portal-notifications-badge { font-size: 0.91rem; }

.portal-body .auth-site-footer-inner { font-size: 1.27rem; }
.portal-body .auth-site-footer-brand strong { font-size: 1.4rem; }
.portal-body .auth-site-footer-brand span { font-size: 1.2rem; }
.portal-body .auth-site-footer-contact { font-size: 1.27rem; }
.portal-body .auth-site-footer-copy { font-size: 1.2rem; }

/* Visa recommendation verification — full page result */
.auth-verify-page {
    flex: 1;
    background:
        radial-gradient(circle at top left, rgba(30, 73, 118, 0.08), transparent 28%),
        linear-gradient(180deg, #f4f7fb 0%, #f8fafc 100%);
}

.auth-verify-hero {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 52%, var(--navy-light) 100%);
    color: #fff;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 10px 30px rgba(10, 31, 61, 0.16);
}

.auth-verify-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2.25rem 1.75rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.auth-verify-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.65rem;
}

.auth-verify-hero-copy h1 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.auth-verify-hero-copy p {
    margin: 0;
    max-width: 42rem;
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}

.auth-verify-hero-meta {
    display: grid;
    gap: 0.85rem;
    min-width: min(100%, 280px);
}

.auth-verify-hero-meta-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 0.95rem 1.1rem;
}

.auth-verify-hero-meta-item span {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 0.35rem;
}

.auth-verify-hero-meta-item strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.4;
    color: #fff;
}

.auth-verify-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.82rem !important;
}

.auth-verify-status-pill.is-issued {
    background: rgba(16, 185, 129, 0.18);
    color: #bbf7d0 !important;
}

.auth-verify-status-pill.is-pending {
    background: rgba(245, 158, 11, 0.18);
    color: #fde68a !important;
}

.auth-verify-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.75rem 1.75rem 2.5rem;
}

.auth-verify-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(10, 31, 61, 0.06);
    padding: 1.35rem 1.5rem 1.5rem;
    margin-bottom: 1.25rem;
}

.auth-verify-card-highlight {
    border-top: 4px solid var(--crimson);
}

.auth-verify-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--gray-200);
}

.auth-verify-card-head h2 {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    font-size: 1.08rem;
    color: var(--navy);
}

.auth-verify-card-head h2 i {
    color: var(--crimson);
}

.auth-verify-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.auth-verify-info-item span {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gray-600);
    margin-bottom: 0.35rem;
}

.auth-verify-info-item strong {
    display: block;
    font-size: 0.98rem;
    line-height: 1.45;
    color: var(--gray-800);
}

.auth-verify-status-text.is-issued { color: #047857; }
.auth-verify-status-text.is-pending { color: #b45309; }

.auth-verify-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.auth-verify-columns .auth-verify-card {
    margin-bottom: 0;
    height: 100%;
}

.auth-verify-applicants {
    display: grid;
    gap: 0.85rem;
}

.auth-verify-applicant-card {
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    background: var(--gray-50);
}

.auth-verify-applicant-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.auth-verify-applicant-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(10, 31, 61, 0.08);
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.auth-verify-applicant-head strong {
    font-size: 0.98rem;
    color: var(--gray-800);
}

.auth-verify-dl {
    display: grid;
    gap: 0.65rem;
    margin: 0;
}

.auth-verify-dl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
}

.auth-verify-dl div { min-width: 0; }

.auth-verify-dl dt {
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-600);
    margin-bottom: 0.2rem;
}

.auth-verify-dl dd {
    margin: 0;
    font-size: 0.92rem;
    color: var(--gray-800);
    font-weight: 600;
}

.auth-verify-issued-card {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    border-radius: 14px;
    padding: 1rem 1.1rem;
}

.auth-verify-pending {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.auth-verify-pending i {
    font-size: 1.35rem;
    line-height: 1;
    margin-top: 0.15rem;
}

.auth-verify-pending strong {
    display: block;
    margin-bottom: 0.2rem;
    color: #92400e;
}

.auth-verify-pending p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
}

.auth-verify-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    color: var(--gray-600);
}

.auth-verify-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--navy);
    font-size: 1.5rem;
    margin-bottom: 0.85rem;
}

.auth-verify-empty h3 {
    margin: 0 0 0.35rem;
    color: var(--navy);
    font-size: 1.2rem;
}

.auth-verify-empty p {
    margin: 0;
    max-width: 32rem;
    line-height: 1.6;
}

.auth-verify-doc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--navy-light);
    text-decoration: none;
    font-weight: 600;
}

.auth-verify-doc-link:hover {
    color: var(--crimson);
    text-decoration: underline;
}

.auth-verify-card-contact {
    padding: 0;
    overflow: hidden;
}

.auth-verify-contact {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.15rem 1.35rem;
    background: linear-gradient(90deg, rgba(10, 31, 61, 0.04), rgba(10, 31, 61, 0.01));
    font-size: 0.9rem;
    color: var(--gray-600);
}

.auth-verify-contact i {
    color: var(--gold);
    font-size: 1.15rem;
    margin-top: 0.15rem;
}

.auth-verify-contact strong {
    display: block;
    color: var(--navy);
    margin-bottom: 0.2rem;
}

.auth-verify-contact span {
    display: block;
    line-height: 1.5;
}

.auth-verify-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 0.35rem;
}

.auth-verify-action-btn {
    width: auto;
    min-width: 220px;
    padding-inline: 1.35rem;
}

@media (max-width: 960px) {
    .auth-verify-info-grid,
    .auth-verify-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .auth-verify-hero-inner,
    .auth-verify-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .auth-verify-dl-grid {
        grid-template-columns: 1fr;
    }

    .auth-verify-action-btn {
        width: 100%;
    }
}

/* Legacy verify result panel styles (login tab) */
.auth-verify-result .auth-panel-title {
    margin-bottom: 1.25rem;
}

.auth-verify-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.auth-verify-summary-item {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 0.9rem 1rem;
}

.auth-verify-summary-item span {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray-600);
    margin-bottom: 0.35rem;
}

.auth-verify-summary-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--navy);
    line-height: 1.45;
}

.auth-verify-status.is-issued { color: #047857; }
.auth-verify-status.is-pending { color: #b45309; }

.auth-verify-section { margin-bottom: 1.35rem; }

.auth-verify-section-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1rem;
    color: var(--navy);
    margin: 0 0 0.85rem;
}

.auth-verify-section-title i { color: var(--crimson); }

.auth-verify-result .auth-flow-links { margin-top: 1.25rem; }

@media (max-width: 720px) {
    .auth-verify-summary { grid-template-columns: 1fr; }
}

/* Public verification result — portal-aligned full page */
.portal-verify-main {
    flex: 1;
    background: var(--portal-bg, #f4f6f9);
    padding: 1.5rem 0 2.5rem;
}

.portal-verify-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.portal-verify-topbar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.portal-verify-alert {
    margin-bottom: 1rem;
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
}

.portal-verify-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.portal-verify-banner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.6rem 1.75rem;
    border-radius: 18px;
    color: #fff;
    margin-bottom: 1.25rem;
    box-shadow: var(--portal-shadow-lg, 0 4px 24px rgba(15, 23, 42, 0.12));
    background: linear-gradient(135deg, #06152a 0%, var(--portal-navy, #0c2340) 55%, var(--portal-navy-light, #1a3a5c) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-verify-banner.is-success {
    border-bottom: 3px solid var(--portal-gold, #c9a227);
}

.portal-verify-banner.is-pending {
    border-bottom: 3px solid #fbbf24;
}

.portal-verify-banner-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    font-size: 1.85rem;
    color: var(--portal-gold, #c9a227);
}

.portal-verify-banner-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.35rem;
}

.portal-verify-banner-copy h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.portal-verify-banner-copy p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.8);
    max-width: 38rem;
}

.portal-verify-banner-ref {
    text-align: right;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    min-width: 180px;
}

.portal-verify-banner-ref span {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.25rem;
}

.portal-verify-banner-ref strong {
    display: block;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.portal-verify-support-body {
    padding: 1rem 1.5rem 1.35rem;
}

.portal-verify-support-body p {
    margin: 0 0 0.85rem;
    color: var(--portal-muted, #64748b);
    line-height: 1.6;
}

.portal-verify-support-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.portal-verify-support-list li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
    color: var(--portal-navy, #0c2340);
}

.portal-verify-support-list i {
    color: var(--portal-gold, #c9a227);
    width: 1.1rem;
    text-align: center;
}

.portal-verify-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin: 1rem 1.5rem 1.35rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.portal-verify-notice-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef3c7;
    color: #b45309;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.portal-verify-notice strong {
    display: block;
    margin-bottom: 0.2rem;
    color: #92400e;
}

.portal-verify-notice p {
    margin: 0;
    line-height: 1.55;
    font-size: 0.95rem;
}

.portal-verify-yes {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #047857;
    font-weight: 700;
}

.portal-verify-no {
    color: #b45309;
    font-weight: 700;
}

.portal-verify-issuance-card {
    position: sticky;
    top: 1rem;
}

@media (max-width: 960px) {
    .portal-verify-banner {
        grid-template-columns: 1fr;
    }

    .portal-verify-banner-ref {
        text-align: left;
    }

    .portal-verify-issuance-card {
        position: static;
    }
}

/* Account setup screens — cohesive mid-section between header & footer */
.auth-body-setup {
    background:
        radial-gradient(ellipse at 18% 12%, rgba(185, 28, 44, 0.08) 0%, transparent 42%),
        radial-gradient(ellipse at 88% 78%, rgba(21, 58, 102, 0.10) 0%, transparent 48%),
        linear-gradient(180deg, #e8eef5 0%, #f3f6fa 45%, #e7edf5 100%);
}

.auth-main-setup {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem 2.5rem;
}

.auth-setup {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.auth-setup-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(11, 35, 68, 0.10);
    box-shadow:
        0 18px 48px rgba(7, 24, 44, 0.12),
        0 2px 0 rgba(255, 255, 255, 0.65) inset;
    background: #fff;
}

.auth-setup-aside {
    position: relative;
    padding: 2.35rem 2.15rem;
    color: #fff;
    background:
        linear-gradient(155deg, #07182c 0%, #0b2748 48%, #153a66 100%);
    overflow: hidden;
}

.auth-setup-aside::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 0% 100%, rgba(185, 28, 44, 0.28) 0%, transparent 48%),
        radial-gradient(ellipse at 100% 0%, rgba(201, 162, 39, 0.16) 0%, transparent 42%);
    pointer-events: none;
}

.auth-setup-aside > * {
    position: relative;
    z-index: 1;
}

.auth-setup-aside h2 {
    font-size: clamp(1.55rem, 2.4vw, 2.05rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 0.85rem;
}

.auth-setup-aside h2 span {
    color: var(--gold);
}

.auth-setup-aside > p {
    margin: 0 0 1.75rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 34ch;
}

.auth-setup-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-setup-step {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.auth-setup-step.is-active {
    border-color: rgba(201, 162, 39, 0.45);
    background: rgba(201, 162, 39, 0.12);
}

.auth-setup-step.is-done {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
}

.auth-setup-step-num {
    flex-shrink: 0;
    width: 1.85rem;
    height: 1.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
}

.auth-setup-step.is-active .auth-setup-step-num {
    background: var(--gold);
    color: #07182c;
}

.auth-setup-step.is-done .auth-setup-step-num {
    background: rgba(52, 211, 153, 0.9);
    color: #064e3b;
}

.auth-setup-step strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.auth-setup-step small {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    line-height: 1.4;
}

.auth-setup-form {
    padding: 2.35rem 2.25rem;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.auth-setup-form .auth-panel-title {
    margin-bottom: 1.35rem;
}

.auth-setup-form .auth-panel-title h2 {
    font-size: 1.55rem;
}

.auth-setup-form .auth-otp-input {
    font-size: 1.5rem;
    letter-spacing: 0.35em;
    text-align: center;
    font-weight: 700;
}

.auth-setup-form .auth-resend-form {
    margin-top: 0.75rem;
}

.auth-setup-form .auth-btn-outline {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--gray-200);
    box-shadow: none;
}

.auth-setup-form .auth-btn-outline:hover {
    background: var(--gray-50);
}

.auth-setup-form .auth-flow-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
    margin-top: 1.25rem;
}

@media (max-width: 860px) {
    .auth-main-setup {
        padding: 1.25rem 0.85rem 1.75rem;
        align-items: stretch;
    }

    .auth-setup-card {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .auth-setup-aside {
        padding: 1.75rem 1.4rem 1.5rem;
    }

    .auth-setup-aside > p {
        max-width: none;
        margin-bottom: 1.25rem;
    }

    .auth-setup-form {
        padding: 1.75rem 1.35rem 1.85rem;
    }
}
