/* STIST admission registration — cleaned, balanced desktop layout */
:root {
    --maroon: #570d13;
    --red: #c62d32;
    --text: #202124;
    --muted: #7e8089;
    --border: #eccbcb;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    width: 100%;
    min-height: 100%;
}

body {
    font-family: 'DM Sans', Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(ellipse at 7% 8%, #762024 0%, transparent 40%), linear-gradient(125deg, #3e090d, #230508 80%);
}

.page-shell {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 15px 22px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portal-layout {
    width: min(1120px, 100%);
    height: min(740px, calc(100vh - 30px));
    height: min(740px, calc(100dvh - 30px));
    min-height: 0;
    display: grid;
    grid-template-columns: 49% 51%;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 22px 65px rgba(0,0,0,.34);
}
/* The form uses its vertical area, rather than leaving big blank bands. */
.registration-panel {
    min-width: 0;
    min-height: 0;
    position: relative;
    padding: 43px clamp(25px, 3.4vw, 42px) 20px;
    background: linear-gradient(140deg, #fff 0%, #fff 74%, #fff5f5 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

    .registration-panel::after {
        content: '';
        position: absolute;
        pointer-events: none;
        width: 250px;
        height: 250px;
        left: -155px;
        bottom: -217px;
        border: 1px solid rgba(198,45,50,.14);
        border-radius: 50%;
    }

.identity {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-emblem {
    flex: 0 0 72px;
    width: 72px;
    height: 92px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .brand-emblem img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.logo-fallback {
    display: none;
    place-items: center;
    width: 65px;
    height: 72px;
    background: #8c2024;
    color: #fff;
    font-weight: 800;
}

.identity-text h1 {
    margin: 0;
    font: 700 clamp(18px, 1.8vw, 23px)/1.17 'Outfit', Arial, sans-serif;
}

.identity-text p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.panel-divider {
    height: 1px;
    flex-shrink: 0;
    background: linear-gradient(90deg, #c62d32, #eadddd);
    margin: 16px 0 17px;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 15px;
}

.heading-accent {
    flex: none;
    width: 5px;
    height: 53px;
    border-radius: 4px;
    background: var(--red);
}

.eyebrow {
    color: #b9262d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
    margin: 1px 0 4px;
}

.section-heading h2 {
    font: 700 26px/1.15 'Outfit', Arial, sans-serif;
    color: #471012;
    margin: 0;
}

.section-heading p {
    color: var(--muted);
    font-size: 13px;
    margin: 7px 0 0;
}

.server-message {
    display: block;
    font-size: 12px;
    margin: 0 0 8px;
}

    .server-message:empty {
        display: none;
    }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px 15px;
}

.field {
    min-width: 0;
}

.field-full {
    grid-column: 1 / -1;
}

.field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 5px;
}

.required {
    color: var(--red);
}

.input-control {
    display: block;
    width: 100%;
    height: 43px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    color: var(--text);
    background: #fff;
    font: 500 13px 'DM Sans', Arial, sans-serif;
    transition: border-color .15s, box-shadow .15s;
}

    .input-control::placeholder {
        color: #aab0be;
        font-weight: 400;
    }

    .input-control:focus {
        border-color: #c52f34;
        box-shadow: 0 0 0 3px rgba(197,47,52,.09);
    }

.action-area {
    margin-top: 5px;
}

.create-button {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(90deg, #b9272d, #d23335);
    color: #fff;
    font: 700 15px 'Outfit', Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(185,39,45,.18);
}

    .create-button:hover {
        filter: brightness(1.06);
    }

.signin-hint {
    text-align: center;
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 12px;
}

    .signin-hint a {
        text-decoration: none;
        color: #ae2028;
        font-weight: 800;
    }

        .signin-hint a:hover {
            text-decoration: underline;
        }
/* Image path relative to Content/registration.css */
.campus-panel {
    min-width: 0;
    position: relative;
    background-color: #668d9d;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

    .campus-panel::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(10,14,22,.40) 0%, rgba(10,14,22,.07) 45%, rgba(10,14,22,.18) 100%);
    }

.campus-placeholder {
    display: none !important;
}

.campus-contact {
    position: absolute;
    top: 18px;
    left: 5%;
    right: 5%;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 15px;
    align-items: center;
    color: #fff;
    font-size: 11px;
    line-height: 1.6;
    padding: 10px 13px;
    border-radius: 14px;
    background: rgba(20,24,34,.42);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
    text-shadow: 0 1px 4px rgba(0,0,0,.45);
}

    .campus-contact a {
        color: inherit;
        text-decoration: none;
    }

        .campus-contact a:hover {
            text-decoration: underline;
        }

.campus-overlay {
    position: absolute;
    z-index: 2;
    left: 8%;
    right: 8%;
    bottom: 25px;
    top: auto;
    color: #fff;
    padding: 17px 20px;
    border-radius: 18px;
    background: rgba(16,18,27,.40);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    box-shadow: 0 10px 28px rgba(0,0,0,.22);
}

.overline {
    display: block;
    font-size: 11px;
    letter-spacing: 2.2px;
    font-weight: 700;
    margin-bottom: 8px;
}

.campus-overlay h2 {
    margin: 0 0 10px;
    font: 700 clamp(28px,2.5vw,38px)/1.12 'Outfit',Arial,sans-serif;
}

    .campus-overlay h2 em {
        font-style: normal;
        font-weight: 400;
    }

.campus-overlay p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.campus-overlay h2, .campus-overlay p, .overline {
    text-shadow: 0 2px 10px rgba(0,0,0,.60);
}

.campus-underline {
    display: block;
    width: 72px;
    height: 4px;
    border-radius: 4px;
    background: #ec4448;
    margin-top: 14px;
}
/* Short laptop windows: tighten consistently, retaining visible form and no inner scrollbar */
@media (min-width:721px) and (max-height:760px) {
    .page-shell {
        padding: 12px 18px;
    }

    .portal-layout {
        height: calc(100dvh - 24px);
    }

    .registration-panel {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .panel-divider {
        margin: 14px 0 16px;
    }

    .section-heading {
        margin-bottom: 15px;
    }

        .section-heading h2 {
            font-size: 23px;
        }

    .form-grid {
        gap: 12px 13px;
    }

    .input-control {
        height: 41px;
    }

    .create-button {
        height: 43px;
    }

    .signin-hint {
        margin-top: 10px;
    }

    .campus-overlay {
        bottom: 18px;
    }

        .campus-overlay h2 {
            font-size: 31px;
        }
}

@media (min-width:721px) and (max-height:610px) {
    .page-shell {
        align-items: flex-start;
    }

    .portal-layout {
        height: auto;
        min-height: 590px;
    }
}

@media (max-width:720px) {
    .page-shell {
        padding: 14px;
        align-items: flex-start;
    }

    .portal-layout {
        width: min(520px,100%);
        height: auto;
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .registration-panel {
        padding: 26px 22px;
    }

    .campus-panel {
        min-height: 310px;
    }

    .campus-contact {
        top: 12px;
        left: 14px;
        right: 14px;
        font-size: 10px;
        padding: 8px 10px;
        border-radius: 12px;
    }

    .campus-overlay {
        left: 5%;
        right: 5%;
        bottom: 16px;
        padding: 13px 15px;
        border-radius: 14px;
    }

        .campus-overlay h2 {
            font-size: 24px;
        }

        .campus-overlay p {
            font-size: 11px;
        }

    .overline {
        font-size: 10px;
        letter-spacing: 1.6px;
    }
}

@media (max-width:430px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .field {
        grid-column: 1/-1;
    }

    .identity-text h1 {
        font-size: 18px;
    }

    .brand-emblem {
        flex-basis: 57px;
        width: 57px;
        height: 70px;
    }

    .campus-panel {
        min-height: 330px;
    }
}


/* BST branding — uses reserved space below the form, never overlaps fields */
.powered-by {
    position: relative;
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 17px;
    text-align: center;
    font: 400 11px 'DM Sans', Arial, sans-serif;
    color: #92929a;
    letter-spacing: .15px;
}

    .powered-by span {
        color: #666670;
        font-weight: 700;
    }

/* Short laptops — preserve original logo & institution text sizing/position */
@media (min-width: 721px) and (max-height: 760px) {
    .registration-panel {
        padding-top: 24px;
        padding-bottom: 12px;
    }

    .panel-divider {
        margin: 12px 0 13px;
    }

    .section-heading {
        margin-bottom: 11px;
    }

    .form-grid {
        gap: 8px 13px;
    }

    .input-control {
        height: 39px;
    }

    .create-button {
        height: 40px;
    }

    .signin-hint {
        margin-top: 20px;
    }

    .powered-by {
        padding-top: 9px;
        font-size: 10px;
    }
}

/* On narrow screens allow normal vertical flow — never clip a required field */
@media (max-width: 720px) {
    .registration-panel {
        padding: 26px 22px 22px;
    }

    .powered-by {
        margin-top: 18px;
        padding-top: 0;
    }
}



/* BST Software - One-time Hover Animation */

.powered-by span {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

    .powered-by span::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -4px;
        width: 100%;
        height: 2px;
        border-radius: 10px;
        background: linear-gradient( 90deg, #BB6AFF, #018DFF );
        transform: scaleX(0);
        transform-origin: left center;
    }

    /* Play once per hover */
    .powered-by span:hover::after {
        animation: bstUnderline 1.8s ease-in-out 1 both;
    }

@keyframes bstUnderline {
    0% {
        transform: scaleX(0);
        transform-origin: left center;
    }

    22.22% {
        transform: scaleX(1);
        transform-origin: left center;
    }

    77.78% {
        transform: scaleX(1);
        transform-origin: right center;
    }

    100% {
        transform: scaleX(0);
        transform-origin: right center;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .powered-by span:hover::after {
        animation: none;
    }
}

/* Login-only adjustment: keep header/logo exactly the same as Registration. */
/* The shared layout and campus styling are intentionally unchanged. */
