/* ============================================================================
   NJOTTI / Optimum School Portal — Modern Balanced Login & Sign-Up Experience
   Dynamically powered by Database Institution Name, Logo, Primary/Secondary Colors,
   and Custom Background Image.
   ============================================================================ */

:root {
    --ink: var(--brand-ink, #10213c);
    --navy: var(--brand-secondary, #10233f);
    --navy-rgb: 16, 35, 63;
    --navy2: var(--brand-secondary-hover, #1a3151);
    --navy2-rgb: 26, 49, 81;
    --wine: var(--brand-primary, #8c2630);
    --wine-rgb: 140, 38, 48;
    --wine2: var(--brand-primary-hover, #a2323d);
    --wine2-rgb: 162, 50, 61;
    --muted: #65738a;
    --line: #e1e7ef;
    --light: #f5f7fb;
    --shadow: 0 22px 68px rgba(8, 27, 50, .14);
}

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

html {
    scroll-behavior: smooth;
}

body.njotti-portal-body {
    margin: 0 !important;
    padding: 0 !important;
    min-width: 320px;
    min-height: 100vh;
    background: #ecf1f6 !important;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    color: var(--ink) !important;
    position: relative;
    isolation: isolate;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

body.njotti-portal-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(var(--navy-rgb), .69), rgba(var(--navy-rgb), .34)), var(--login-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

button, input, select, a {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
    outline: 3px solid #7da7e7;
    outline-offset: 3px;
}

.shell {
    width: min(1200px, calc(100% - 52px));
    margin-inline: auto;
}

/* ============================================================================
   TWO-COLUMN HERO & ACCOUNT CARD LAYOUT
   ============================================================================ */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
    padding: 18px 0 28px;
}

.hero-copy,
.login-card {
    border-radius: 24px;
    min-width: 0;
    min-height: 580px;
}

/* Left Panel: Welcome + Quick-Access Services over Institution Background */
.hero-copy {
    background: linear-gradient(110deg, rgba(var(--navy-rgb), .92), rgba(var(--navy2-rgb), .74)), var(--login-bg-image);
    background-size: cover;
    background-position: center center;
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: clamp(30px, 4vw, 54px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    box-shadow: 0 18px 46px rgba(6, 24, 49, .22);
}

.hero-copy::before,
.hero-copy::after {
    display: none !important;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 510px;
    margin-inline: 0;
    width: 100%;
}

/* Official Branding in Left Welcome Section */
.hero-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 100%;
    margin-bottom: 22px;
}

.hero-identity .identity-logo,
.hero-identity img {
    display: block;
    width: 75px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 8px;
    padding: 0 !important;
    box-shadow: none !important;
}

.hero-identity span {
    display: block;
    min-width: 0;
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #ecf0f7;
    font-weight: 750;
    max-width: 220px;
}

.hero h1 {
    font-size: clamp(34px, 3.6vw, 49px);
    line-height: 1.13;
    letter-spacing: -.035em;
    margin: 17px 0 18px;
    font-weight: 850;
    max-width: 510px;
    color: #ffffff;
}

.hero h1 span {
    color: #ffffff;
    text-decoration: none !important;
}

.hero p {
    font-size: 15px;
    line-height: 1.55;
    max-width: 470px;
    color: #c4cfdf;
    margin: 0;
}

.hero-points {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.hero-points span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 30px;
    color: #e2e9f5;
    font-size: 11px;
    font-weight: 650;
    background: rgba(255, 255, 255, .07);
}

.hero-points svg {
    width: 15px;
    height: 15px;
    stroke: #fff;
}

/* Quick-Access Services List inside Hero Panel */
.sidebar-services,
.services.sidebar-services {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    border-radius: 16px;
    padding: 10px 20px;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    margin-top: 0;
}

.sidebar-services .service {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-content: center;
    align-items: center;
    justify-content: stretch;
    min-height: 58px;
    width: 100%;
    padding: 9px 3px;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    color: #fff;
    box-shadow: none;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    transition: background .18s ease, padding-left .18s ease;
    text-decoration: none !important;
    cursor: pointer;
}

a.sidebar-services .service,
.sidebar-services a.service {
    color: #fff !important;
    text-decoration: none !important;
}

.sidebar-services .service:last-child {
    border-bottom: 0;
}

.sidebar-services .service:hover,
.sidebar-services .service:focus-visible {
    background: rgba(255, 255, 255, .08) !important;
    padding-left: 9px;
    outline-offset: -3px;
}

.sidebar-services .service-icon {
    grid-row: 1 / 3;
    grid-column: 1;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--wine2);
    color: #fff;
    margin: 0;
}

.sidebar-services .service-icon svg {
    width: 19px;
    height: 19px;
}

.sidebar-services .service strong {
    grid-column: 2;
    grid-row: 1;
    display: block;
    margin: 0;
    font-size: 13px;
    line-height: 1.3;
    color: #fff;
    font-weight: 750;
}

.sidebar-services .service small {
    grid-column: 2;
    grid-row: 2;
    display: block;
    margin: 1px 0 0;
    font-size: 11px;
    line-height: 1.35;
    color: #dbe4ff;
}

/* ============================================================================
   RIGHT COLUMN: LOGIN / RESET / SIGN-UP CARD
   ============================================================================ */

.login-card {
    background: #fff;
    border: 1px solid #e9edf3;
    padding: clamp(28px, 3.4vw, 44px);
    box-shadow: 0 18px 46px rgba(6, 24, 49, .17);
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Official Branding in Right Login Section */
.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 0 18px;
    text-align: left;
}

.login-brand img {
    width: 76px;
    height: 78px;
    object-fit: contain;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    flex-shrink: 0;
}

.login-brand-name {
    font-size: 15px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: .015em;
    color: var(--navy);
    max-width: 240px;
}

.login-card > h2#formTitle,
.login-card h2 {
    font-size: clamp(25px, 2.5vw, 31px);
    letter-spacing: -.035em;
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--ink);
    font-weight: 800;
}

.subtitle,
.login-card > .subtitle {
    font-size: 14px;
    color: #60718a;
    margin-top: 0;
    margin-bottom: 22px;
    line-height: 1.55;
}

/* Interactive Navigation Tabs */
.tabs {
    display: flex;
    background: #f3f5f9;
    padding: 5px;
    border-radius: 12px;
    gap: 3px;
    margin-bottom: 23px;
}

.tab {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 9px;
    color: #67758a;
    font-size: 12px;
    min-height: 43px;
    padding: 11px 5px;
    font-weight: 750;
    white-space: normal;
    line-height: 1.3;
    transition: background .2s, color .2s, box-shadow .2s;
}

.tab[aria-selected="true"] {
    background: #ffffff;
    color: var(--wine);
    box-shadow: 0 2px 9px rgba(11, 26, 48, .125);
}

.panel[hidden] {
    display: none !important;
}

/* Form Fields & Controls */
.field-label {
    font-size: 12px;
    font-weight: 750;
    display: block;
    margin: 0 0 7px;
    color: var(--ink);
}

.field {
    position: relative;
    margin-bottom: 14px;
}

.field input,
.field select {
    width: 100%;
    border: 1px solid #dce3ec;
    border-radius: 12px;
    background: #fff;
    height: 49px;
    padding: 0 45px 0 16px;
    color: var(--ink);
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}

.field select {
    padding: 0 16px;
}

.field input:focus,
.field select:focus {
    outline: 0;
    border-color: var(--wine);
    box-shadow: 0 0 0 3px rgba(var(--wine-rgb), .12);
}

.field-action {
    position: absolute;
    top: 50%;
    right: 9px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #708096;
    padding: 8px;
    font-size: 12px;
    font-weight: 700;
}

.line-icon {
    width: 23px;
    height: 23px;
    display: block;
    flex-shrink: 0;
}

.with-icon > svg {
    width: 18px;
    height: 18px;
    position: absolute;
    top: 15.5px;
    left: 14px;
    pointer-events: none;
    color: #71819a;
}

.with-icon input {
    padding-left: 43px;
    padding-right: 14px;
}

.has-action input {
    padding-right: 48px;
}

.has-action .field-action {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 7px;
    color: #71819a;
}

.has-action .field-action svg {
    width: 19px;
    height: 19px;
}

.helper-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -2px 0 22px;
}

.remember {
    display: flex;
    gap: 9px;
    align-items: center;
    font-size: 12px;
    color: #4d5b70;
    margin: 0;
    cursor: pointer;
}

.remember input {
    accent-color: var(--wine);
    width: 16px;
    height: 16px;
}

.text-button {
    border: 0;
    background: transparent;
    color: var(--wine);
    font-size: 12px;
    font-weight: 750;
    padding: 0;
}

.text-button:hover {
    text-decoration: underline;
}

.primary {
    border: 0;
    width: 100%;
    border-radius: 12px;
    height: 50px;
    background: linear-gradient(110deg, var(--wine), var(--wine2));
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 9px 15px rgba(var(--wine-rgb), .18);
    transition: transform .2s, filter .2s;
}

.primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.07);
}

.form-note {
    margin-top: 18px;
    color: #62738b;
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
}

.form-note a {
    color: var(--wine);
    font-weight: 750;
}

.form-note a:hover {
    text-decoration: underline;
}

.inline-message {
    font-size: 12px;
    margin: 14px 0 0;
    padding: 12px;
    border-radius: 9px;
    line-height: 1.5;
    background: #eef4fc;
    color: #234973;
}

.inline-message.error {
    background: #fff1f2;
    color: var(--wine);
}

/* Sign-Up Choice Cards & Multi-Column Registration Grid */
.choice-list {
    display: grid;
    gap: 11px;
}

.choice-card {
    display: flex;
    align-items: center;
    gap: 13px;
    text-align: left;
    width: 100%;
    padding: 14px;
    border: 1px solid #dce4ef;
    border-radius: 15px;
    background: #f9fbfe;
    color: var(--ink);
    transition: background .2s, border-color .2s, transform .2s;
    text-decoration: none !important;
    cursor: pointer;
}

a.choice-card {
    color: var(--ink) !important;
    text-decoration: none !important;
}

.choice-card:hover {
    background: #f4f6fb;
    border-color: #a9b8ca;
    transform: translateY(-2px);
}

.choice-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 43px;
    height: 43px;
    border-radius: 12px;
    color: var(--wine);
    background: rgba(var(--wine-rgb), .10);
}

.choice-icon svg,
.choice-arrow svg {
    width: 21px;
    height: 21px;
}

.choice-text {
    display: grid;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.choice-text strong {
    font-size: 13px;
    line-height: 1.35;
}

.choice-text small {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.5;
}

.choice-arrow {
    color: #8391a7;
    display: grid;
    place-items: center;
}

.subtle-back {
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    border: 0;
    background: none;
    color: var(--wine);
    font-size: 12px;
    font-weight: 750;
    padding: 6px 0;
    text-align: left;
}

.subtle-back:hover {
    text-decoration: underline;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 13px;
    align-items: start;
}

.form-grid .form-group {
    min-width: 0;
}

.form-grid .field input,
.form-grid .field select {
    min-width: 0;
}

.hint {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: -9px;
    margin-bottom: 12px;
}

.form-actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;
    margin-top: 5px;
}

.form-actions .primary {
    height: 48px;
}

.secondary-btn {
    border: 1px solid #dce4ef;
    border-radius: 12px;
    background: #f5f7fb;
    color: var(--wine);
    font-size: 12px;
    font-weight: 750;
    padding: 10px;
    transition: background .2s;
}

.secondary-btn:hover {
    background: #e9edf6;
}

/* Footer & Toast */
.footer {
    padding: 18px 24px 20px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    line-height: 1.55;
    background: transparent;
    border-radius: 0;
    margin-bottom: 24px;
    color: #fff;
    font-size: 12px;
    border: 0;
    box-shadow: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}

.footer a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.toast {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: var(--navy);
    color: #fff;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .2);
    max-width: min(410px, calc(100vw - 44px));
    font-size: 13px;
    z-index: 20;
}

.toast[hidden] {
    display: none !important;
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS (MATCHING NJOTTI_Portal_Logo_Both_Sections)
   ============================================================================ */

@media (min-width: 801px) {
    .hero-copy,
    .login-card {
        min-height: 710px;
    }
    .hero-copy {
        padding: 34px 40px;
    }
    .hero h1 {
        font-size: clamp(31px, 3vw, 44px);
    }
    .hero-identity {
        margin-bottom: 13px;
    }
    .hero-points {
        margin-top: 16px;
    }
    .hero-content p {
        line-height: 1.55;
    }
}

@media (max-width: 1100px) {
    .shell {
        width: min(100% - 42px, 1200px);
    }
    .hero {
        grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
        gap: 17px;
    }
    .hero-copy {
        padding: 36px 30px;
    }
    .login-card {
        padding: 32px 28px;
    }
}

@media (max-width: 800px) {
    .shell {
        width: min(calc(100% - 34px), 660px);
    }
    .hero {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 13px 0 22px;
    }
    .hero-copy,
    .login-card {
        min-height: 0;
        border-radius: 20px;
    }
    .hero-copy {
        padding: 36px 32px;
        gap: 22px;
    }
    .hero-content {
        margin: 0;
        max-width: none;
    }
    .hero-identity {
        margin-bottom: 18px;
    }
    .hero h1 {
        font-size: clamp(30px, 6vw, 43px);
        max-width: 530px;
        margin: 14px 0 12px;
    }
    .hero p {
        font-size: 14px;
        line-height: 1.65;
    }
    .hero-points {
        margin-top: 20px;
    }
    .sidebar-services {
        padding: 8px 17px;
    }
    .login-card {
        padding: 32px;
        box-shadow: 0 10px 28px rgba(6, 24, 49, .14);
    }
}

@media (max-width: 740px) {
    body.njotti-portal-body::before {
        background-position: 54% center;
    }
    .hero-identity {
        gap: 12px;
        margin-bottom: 17px;
    }
    .hero-identity .identity-logo {
        width: 62px;
        height: 67px;
    }
    .login-brand {
        justify-content: flex-start;
        gap: 12px;
        margin-bottom: 14px;
    }
    .login-brand img {
        width: 64px;
        height: 68px;
    }
    .login-brand-name {
        font-size: 13px;
    }
    .choice-card {
        padding: 12px;
    }
    .form-actions {
        grid-template-columns: 1fr 1.15fr;
    }
    .footer {
        flex-direction: column;
        text-align: center;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .shell {
        width: calc(100% - 24px);
    }
    .hero {
        gap: 12px;
    }
    .hero-copy {
        padding: 22px 19px;
        gap: 20px;
    }
    .hero-identity {
        gap: 10px;
        margin-bottom: 17px;
    }
    .hero-identity span {
        font-size: 10px;
    }
    .hero h1 {
        font-size: 32px;
        letter-spacing: -.025em;
    }
    .hero-points span {
        font-size: 10px;
    }
    .sidebar-services {
        padding: 7px 13px;
    }
    .sidebar-services .service {
        min-height: 58px;
    }
    .login-card {
        padding: 26px 20px;
    }
    .login-card h2 {
        font-size: 26px;
    }
    .tab {
        font-size: 11px;
        padding: 10px 4px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .hero-identity .identity-logo {
        width: 54px;
        height: 58px;
    }
    .login-brand img {
        width: 56px;
        height: 60px;
    }
    .login-brand-name {
        font-size: 12px;
    }
    .form-actions {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   STANDALONE CENTERED REGISTRATION / ACCOUNT PAGES (_Layout_Center.cshtml)
   Matches Modern Applicant Registration Card (uploaded_media_1794515627396.jpg)
   ============================================================================ */

body.modern-center-body {
    margin: 0 !important;
    min-height: 100vh !important;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    background: linear-gradient(145deg, rgba(var(--navy-rgb), .92) 0%, rgba(var(--navy2-rgb), .86) 55%, rgba(var(--navy-rgb), .95) 100%), var(--login-bg-image) !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    color: var(--ink) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 28px 16px 20px !important;
    position: relative;
    overflow-x: hidden;
}

.center-portal-wrapper {
    width: min(1240px, calc(100% - 36px));
    max-width: 1240px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.center-institution-header {
    text-align: center;
    margin-bottom: 22px;
}

.center-institution-logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
    margin: 0 auto 12px;
    display: block;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .28));
}

.center-institution-title {
    color: #ffffff;
    font-size: clamp(16px, 2.2vw, 21px);
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin: 0 0 12px;
    line-height: 1.35;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.center-institution-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    position: relative;
}

.center-institution-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, .24);
}

.center-institution-divider span {
    width: 54px;
    height: 4px;
    border-radius: 4px;
    background: var(--wine2);
    position: relative;
    z-index: 1;
}

.modern-signup-card {
    width: 100%;
    max-width: 540px;
    background: #ffffff;
    border-radius: 24px;
    padding: 34px 36px 30px;
    box-shadow: 0 24px 64px rgba(5, 16, 36, .35);
    position: relative;
    overflow: hidden;
    transition: max-width .2s ease;
}

/* Widen modern-signup-card when it hosts the two-column hero login page */
.modern-signup-card:has(.hero),
.center-portal-wrapper:has(.hero) .modern-signup-card,
.modern-signup-card.has-hero {
    max-width: 1220px;
    padding: 24px;
    border-radius: 28px;
}

.modern-signup-card:has(.hero) .hero,
.modern-signup-card.has-hero .hero {
    padding: 0;
    margin: 0;
    gap: 24px;
}

.modern-signup-card:has(.hero) .hero-copy,
.modern-signup-card.has-hero .hero-copy {
    border-radius: 20px;
}

.modern-signup-card:has(.hero) .login-card,
.modern-signup-card.has-hero .login-card {
    border-radius: 20px;
    border: 1px solid #e5ebf4;
    box-shadow: 0 6px 24px rgba(10, 25, 50, .06);
}

/* Centered Portal Footer */
.center-portal-footer {
    width: 100%;
    max-width: 1220px;
    margin-top: 18px;
    padding: 16px 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e5edf9;
    font-size: 12.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}

.center-portal-footer a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.modern-signup-card::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--navy2-rgb), .08), rgba(var(--wine-rgb), .05));
    pointer-events: none;
}

.modern-signup-badge {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    background: rgba(var(--navy2-rgb), .09);
    color: var(--navy);
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
}

.modern-signup-badge svg {
    width: 26px;
    height: 26px;
}

.modern-signup-card h2 {
    text-align: center;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--navy);
    margin: 0 0 6px;
}

.modern-signup-subtitle {
    text-align: center;
    font-size: 13.5px;
    color: #60718a;
    margin: 0 0 24px;
}

.modern-field-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 10px;
    align-items: start;
    margin-bottom: 15px;
}

.modern-field-icon {
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2px;
}

.modern-field-icon svg {
    width: 20px;
    height: 20px;
}

.modern-field-body label {
    display: block;
    font-size: 12.5px;
    font-weight: 750;
    color: var(--navy);
    margin: 0 0 6px;
}

.modern-input-wrap {
    position: relative;
}

.modern-input-wrap input,
.modern-input-wrap select {
    width: 100%;
    height: 44px;
    border: 1px solid #d8e1ee;
    border-radius: 10px;
    background: #f9fbfe;
    padding: 0 14px;
    font-size: 13.5px;
    color: var(--ink);
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.modern-input-wrap.has-eye input {
    padding-right: 42px;
}

.modern-input-wrap input:focus,
.modern-input-wrap select:focus {
    outline: 0;
    background: #ffffff;
    border-color: var(--navy2);
    box-shadow: 0 0 0 3px rgba(var(--navy2-rgb), .12);
}

.modern-eye-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #6b7a90;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 0;
}

.modern-submit-btn {
    margin-top: 10px;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(110deg, var(--navy), var(--navy2));
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 750;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 10px 22px rgba(var(--navy-rgb), .24);
    transition: transform .2s, filter .2s;
}

.modern-submit-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.modern-submit-btn svg {
    width: 19px;
    height: 19px;
}

.modern-card-footer {
    margin-top: 18px;
    text-align: center;
    font-size: 13.5px;
    color: #64748b;
}

.modern-card-footer a {
    color: var(--navy);
    font-weight: 800;
    margin-left: 4px;
}

.modern-card-footer a:hover {
    color: var(--wine);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .center-portal-wrapper {
        width: 100%;
        max-width: 640px;
    }

    .modern-signup-card:has(.hero),
    .center-portal-wrapper:has(.hero) .modern-signup-card,
    .modern-signup-card.has-hero {
        max-width: 640px;
        padding: 20px 16px;
        border-radius: 22px;
    }

    .center-portal-footer {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        line-height: 1.5;
    }
}

@media (max-width: 520px) {
    .modern-signup-card {
        padding: 24px 16px 20px;
        border-radius: 20px;
    }

    .modern-signup-card:has(.hero),
    .center-portal-wrapper:has(.hero) .modern-signup-card,
    .modern-signup-card.has-hero {
        padding: 16px 12px;
        border-radius: 18px;
    }
}
