.student-portal-body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.14), transparent 28%),
        radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.2), transparent 24%),
        linear-gradient(160deg, #0f2a52 0%, #15396d 45%, #0a1d3a 100%);
    color: #140f2e;
    font-family: "Inter", "Segoe UI", sans-serif;
}

.student-portal-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.student-portal-backdrop {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.student-portal-backdrop-one {
    inset: auto auto 8% 8%;
    width: 14rem;
    height: 14rem;
    background: rgba(59, 130, 246, 0.16);
    filter: blur(70px);
}

.student-portal-backdrop-two {
    inset: 7% 7% auto auto;
    width: 16rem;
    height: 16rem;
    background: rgba(96, 165, 250, 0.18);
    filter: blur(80px);
}

.student-portal-backdrop-three {
    inset: auto 32% 12% auto;
    width: 18rem;
    height: 18rem;
    background: rgba(37, 99, 235, 0.14);
    filter: blur(90px);
}

.student-portal-stage {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.student-portal-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.98fr);
    width: min(100%, 1180px);
    min-height: min(690px, calc(100vh - 2rem));
    max-height: calc(100vh - 2rem);
    border-radius: 2rem;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(16, 11, 45, 0.32);
}

.student-login-panel,
.student-login-showcase {
    position: relative;
    padding: 2rem 2.5rem;
}

.student-login-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    border-right: 1px solid rgba(37, 99, 235, 0.08);
    justify-content: space-between;
}

.student-login-brand,
.student-login-heading,
.student-login-helper-head,
.student-login-actions-row,
.student-login-social-list,
.student-login-showcase-center,
.student-login-showcase-footer,
.student-login-showcase-brand {
    display: flex;
}

.student-login-brand {
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0.95rem;
    border-radius: 1.2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.82));
    border: 1px solid rgba(37, 99, 235, 0.08);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
    width: fit-content;
}

.student-login-brand-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.24);
}

.student-login-brand-name,
.student-login-brand-subtitle,
.student-login-kicker,
.student-login-label,
.student-login-social p,
.student-login-helper-head p,
.student-login-helper-action,
.student-login-showcase-brand p,
.student-login-showcase-footer p {
    margin: 0;
    text-transform: uppercase;
}

.student-login-brand-name {
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #1f2753;
}

.student-login-brand-subtitle {
    margin-top: 0.2rem;
    font-size: 0.54rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: #9aa4bd;
}

.student-login-main {
    position: relative;
    margin: auto;
    width: min(100%, 33rem);
    padding: 1.25rem 1.35rem 1.3rem;
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(37, 99, 235, 0.08);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.07);
    backdrop-filter: blur(10px);
}

.student-login-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 1.2rem;
}

.student-login-kicker {
    color: #2563eb;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.student-login-kicker-line {
    width: 2.7rem;
    height: 0.22rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #60a5fa 0%, #2563eb 100%);
}

.student-login-heading h1 {
    margin: 0.1rem 0 0;
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-size: 2rem;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: #14213d;
}

.student-login-heading p {
    margin: 0;
    max-width: 30rem;
    color: #64748b;
    font-size: 0.93rem;
    line-height: 1.55;
}

.student-login-alert {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    font-size: 0.86rem;
    line-height: 1.5;
}

.student-login-alert-title {
    margin: 0 0 0.2rem;
    font-weight: 700;
}

.student-login-alert-warning {
    background: #fff6db;
    color: #8b5e10;
    border: 1px solid #f4df9a;
}

.student-login-alert-danger {
    background: #ffeaee;
    color: #a63d55;
    border: 1px solid #f3bcc8;
}

.student-login-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.student-login-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.student-login-field-compact {
    margin-bottom: 0;
}

.student-login-label {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: #94a3b8;
}

.student-login-input-shell {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 3rem;
    border-radius: 1rem;
    border: 1px solid #d7e3f4;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 0 1rem;
    box-shadow: 0 10px 24px rgba(148, 163, 184, 0.08);
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.student-login-input-underline {
    min-height: 3rem;
    border: 1px solid transparent;
    border-bottom: 1.5px solid #d7e3f4;
    border-radius: 1rem 1rem 0 0;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.9), rgba(255, 255, 255, 0.76));
    padding: 0 0.95rem;
    box-shadow: none;
}

.student-login-input-shell:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08), 0 16px 30px rgba(37, 99, 235, 0.08);
    background: #ffffff;
    transform: translateY(-1px);
}

.student-login-input-underline:focus-within {
    box-shadow: 0 12px 28px rgba(148, 163, 184, 0.12);
    background: #ffffff;
}

.student-login-input-shell:hover {
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: 0 14px 28px rgba(148, 163, 184, 0.12);
}

.student-login-input-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #a6b0c4;
    transition: color 180ms ease, transform 180ms ease;
}

.student-login-input-icon svg,
.student-login-toggle svg,
.student-login-helper-icon svg,
.student-login-showcase-logo svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.student-login-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #1e293b;
    font-size: 0.98rem;
    font-weight: 600;
}

.student-login-input::placeholder {
    color: #a6b0c4;
}

.student-login-input:-webkit-autofill,
.student-login-input:-webkit-autofill:hover,
.student-login-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
    -webkit-text-fill-color: #1f2753;
    background-color: #ffffff !important;
}

.student-login-input-mono {
    font-family: "Inter", "Segoe UI", sans-serif;
    letter-spacing: 0.01em;
}

.student-login-toggle {
    border: none;
    background: transparent;
    color: #a6b0c4;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 180ms ease, transform 180ms ease;
}

.student-login-input-shell:focus-within .student-login-input-icon,
.student-login-input-shell:hover .student-login-input-icon,
.student-login-input-shell:focus-within .student-login-toggle {
    color: #2563eb;
    transform: scale(1.04);
}

.student-login-toggle:hover,
.student-login-toggle.is-active,
.student-login-text-link:hover,
.student-login-helper-action:hover,
.student-login-showcase-btn:hover {
    color: #2563eb;
}

.student-login-field-error {
    margin: 0;
    color: #b42346;
    font-size: 0.78rem;
}

.student-login-actions-row {
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.05rem;
    padding: 0.1rem 0.05rem 0;
    font-size: 0.78rem;
    color: #8b94a8;
}

.student-login-check {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
}

.student-login-check input {
    width: 0.95rem;
    height: 0.95rem;
    accent-color: #2563eb;
}

.student-login-text-link,
.student-login-helper-action,
.student-login-showcase-btn {
    color: #8b94a8;
    text-decoration: none;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.student-login-text-link {
    font-weight: 600;
}

.student-login-submit {
    min-height: 3.2rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
    position: relative;
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.student-login-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: translateX(-100%);
    transition: transform 280ms ease;
}

.student-login-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.34);
}

.student-login-submit:hover:not(:disabled)::before {
    transform: translateX(100%);
}

.student-login-submit:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.student-login-social {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    text-align: center;
}

.student-login-social p,
.student-login-showcase-footer p {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: #b0b8cb;
}

.student-login-social-list {
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0.75rem;
}

.student-login-social-btn,
.student-login-showcase-social-list span {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.86rem;
    font-weight: 800;
}

.student-login-social-btn {
    border: none;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(19, 26, 56, 0.12);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.student-login-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 26px rgba(19, 26, 56, 0.18);
    filter: saturate(1.08);
}

.student-login-social-facebook {
    background: #4267b2;
}

.student-login-social-twitter {
    background: #1da1f2;
}

.student-login-social-google {
    background: #ea4335;
}

.student-login-social-linkedin {
    background: #0077b5;
    font-size: 0.72rem;
}

.student-login-helper-card {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.85rem 0.95rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(37, 99, 235, 0.1);
    background: linear-gradient(180deg, rgba(248, 250, 255, 0.98) 0%, rgba(239, 246, 255, 0.94) 100%);
    box-shadow: 0 10px 22px rgba(148, 163, 184, 0.08);
}

.student-login-helper-icon {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    flex: 0 0 auto;
}

.student-login-helper-copy {
    flex: 1;
    min-width: 0;
}

.student-login-helper-head {
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.student-login-helper-head p {
    color: #1e3a5f;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.student-login-helper-action {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #2563eb;
}

.student-login-helper-copy > p {
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.45;
}

.student-login-showcase {
    background:
        radial-gradient(circle at 25% 15%, rgba(255, 255, 255, 0.08), transparent 26%),
        linear-gradient(160deg, #123768 0%, #1d4f91 40%, #0f274c 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.student-login-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 50%, rgba(7, 20, 41, 0.2));
    pointer-events: none;
}

.student-login-showcase-orb {
    position: absolute;
    border-radius: 999px;
}

.student-login-showcase-orb-top {
    top: 2.2rem;
    right: 2.5rem;
    width: 3.55rem;
    height: 3.55rem;
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
}

.student-login-showcase-orb-bottom {
    bottom: 4.4rem;
    left: 2.2rem;
    width: 1.2rem;
    height: 1.2rem;
    background: rgba(96, 165, 250, 0.42);
}

.student-login-showcase-center {
    position: relative;
    z-index: 1;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.student-login-showcase-brand {
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}

.student-login-showcase-logo {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #93c5fd;
    background: rgba(10, 23, 45, 0.5);
    border: 2px solid rgba(147, 197, 253, 0.82);
    box-shadow: 0 0 0 6px rgba(96, 165, 250, 0.1);
}

.student-login-showcase-logo img {
    width: 76%;
    height: 76%;
    object-fit: contain;
    display: block;
}

.student-login-showcase-brand p {
    color: #93c5fd;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.student-login-showcase-copy {
    max-width: 24rem;
    margin-top: 1.4rem;
}

.student-login-showcase-copy h2 {
    margin: 0;
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-size: clamp(2rem, 1.7vw + 1.15rem, 3rem);
    line-height: 1;
}

.student-login-showcase-copy p {
    margin: 0.75rem 0 0;
    color: rgba(219, 234, 254, 0.82);
    font-size: 0.9rem;
    line-height: 1.55;
}

.student-login-showcase-footer {
    position: relative;
    z-index: 1;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.student-login-showcase-btn {
    width: min(100%, 17rem);
    min-height: 3rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.student-login-showcase-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
}

.student-login-showcase-social-list {
    display: flex;
    gap: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.student-login-showcase-social-list span {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
}

.form-errors {
    margin-bottom: 0.7rem;
}

@media (max-height: 860px) {
    .student-portal-stage {
        padding: 0.7rem;
    }

    .student-portal-card {
        min-height: min(650px, calc(100vh - 1.4rem));
        max-height: calc(100vh - 1.4rem);
    }

    .student-login-panel,
    .student-login-showcase {
        padding: 1.4rem 2rem;
    }

    .student-login-brand {
        padding: 0.65rem 0.8rem;
    }

    .student-login-main {
        padding: 1.05rem 1.15rem 1.1rem;
    }

    .student-login-heading h1 {
        font-size: 1.8rem;
    }

    .student-login-helper-card {
        display: none;
    }

    .student-login-showcase-orb-top {
        width: 2.9rem;
        height: 2.9rem;
        top: 1.6rem;
        right: 1.8rem;
    }

    .student-login-showcase-orb-bottom {
        bottom: 2.4rem;
    }
}

@media (max-width: 1024px) {
    .student-portal-card {
        grid-template-columns: 1fr;
        min-height: auto;
        max-height: none;
    }

    .student-login-panel,
    .student-login-showcase {
        padding: 2.5rem 2.2rem;
    }

    .student-login-main {
        width: 100%;
        max-width: 420px;
        padding: 1.45rem 1.3rem 1.55rem;
    }

    .student-login-showcase {
        min-height: 360px;
    }
}

@media (max-width: 640px) {
    .student-portal-stage {
        padding: 1rem;
    }

    .student-portal-card {
        border-radius: 1.6rem;
    }

    .student-login-panel,
    .student-login-showcase {
        padding: 1.75rem 1.35rem;
    }

    .student-login-brand,
    .student-login-main {
        width: 100%;
    }

    .student-login-heading h1 {
        font-size: 1.85rem;
    }

    .student-login-actions-row,
    .student-login-helper-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .student-login-showcase-copy h2 {
        font-size: 2rem;
    }

    .student-login-showcase-btn {
        width: 100%;
    }
}
