/* Student Admissions Portal */
:root {
    --dgi-primary: #8F001A;
    --dgi-primary-dark: #6d0014;
    --dgi-navy: #3b0a16;
}

.portal-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #3b0a16;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: #1f2937;
}

.portal-shell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem 1rem;
}

.portal-card {
    width: 100%;
    max-width: 1040px;
    min-height: 620px;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.portal-form-side {
    padding: 2.25rem 2.5rem 2rem;
    display: flex;
    flex-direction: column;
}

.portal-brand-link {
    display: inline-flex;
    margin-bottom: 2rem;
}

.portal-logo {
    max-height: 48px;
    width: auto;
}

.portal-screen {
    display: flex;
    flex-direction: column;
    flex: 1;
}

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

.portal-title {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 0.4rem;
    color: #111827;
}

.portal-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.portal-subtitle strong {
    color: var(--dgi-primary);
    font-weight: 600;
}

.portal-form {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.portal-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #4b5563;
    margin-top: 0.45rem;
}

.portal-form .form-control {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem 0.95rem;
    font-size: 0.95rem;
    background: #f8fafc;
}

.portal-form .form-control:focus {
    background: #fff;
    border-color: var(--dgi-primary);
    box-shadow: 0 0 0 3px rgba(143, 0, 26, 0.12);
}

.portal-otp-boxes {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.55rem;
    margin: 0.15rem 0 0.35rem;
}

.portal-otp-box {
    width: 100%;
    aspect-ratio: 0.85;
    min-height: 52px;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
    caret-color: var(--dgi-primary);
}

.portal-otp-box:focus {
    outline: none;
    background: #fff;
    border-color: var(--dgi-primary);
    box-shadow: 0 0 0 3px rgba(143, 0, 26, 0.14);
}

.portal-btn-primary {
    width: 100%;
    background: var(--dgi-primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 1.1rem;
    box-shadow: 0 8px 18px rgba(143, 0, 26, 0.28);
}

.portal-btn-primary:hover {
    background: var(--dgi-primary-dark);
    color: #fff;
}

.portal-btn-ghost {
    width: 100%;
    background: transparent;
    color: var(--dgi-primary);
    border: 1px solid #f3d0d6;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.65rem;
}

.portal-btn-ghost:hover {
    background: #fdf2f4;
    color: var(--dgi-primary);
}

.portal-switch {
    margin-top: auto;
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.portal-link-btn,
.portal-back {
    background: none;
    border: none;
    color: var(--dgi-primary);
    font-weight: 700;
    padding: 0;
}

.portal-back {
    align-self: flex-start;
    margin-bottom: 0.85rem;
    font-size: 0.85rem;
}

.portal-inline-msg {
    min-height: 1.2em;
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: var(--dgi-primary);
}

.portal-alert {
    border-radius: 10px;
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
}

.portal-hero {
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 32%),
        radial-gradient(circle at 80% 80%, rgba(255, 214, 170, 0.28), transparent 40%),
        linear-gradient(160deg, #8F001A 0%, #b4233a 42%, #f3c9a3 100%);
    color: #fff;
    display: flex;
    align-items: flex-end;
    padding: 2.75rem;
    position: relative;
}

.portal-hero::after {
    content: "";
    position: absolute;
    inset: 12% 8% auto auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(2px);
}

.portal-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.portal-hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0.8;
    margin-bottom: 0.65rem;
}

.portal-hero-title {
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin: 0 0 1rem;
}

.portal-hero-copy {
    font-size: 1rem;
    line-height: 1.65;
    opacity: 0.92;
    margin: 0;
}

.portal-footer {
    text-align: center;
    padding: 0 1.25rem 1.5rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.84rem;
    line-height: 1.6;
}

.portal-footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

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

.portal-footer-copy {
    margin-top: 0.45rem;
    opacity: 0.7;
}

@media (max-width: 900px) {
    .portal-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .portal-hero {
        min-height: 220px;
        padding: 2rem 1.5rem;
    }

    .portal-form-side {
        padding: 1.75rem 1.35rem;
    }
}
