/*
|--------------------------------------------------------------------------
| Pupil Login
|--------------------------------------------------------------------------
| The driving school is not known until authentication succeeds, so this
| page intentionally uses neutral Driving Instructors Diary branding.
*/

:root {
    --auth-bg: #f4f7fb;
    --auth-surface: #ffffff;
    --auth-border: #e5eaf1;
    --auth-text: #162033;
    --auth-muted: #718096;
    --auth-primary: #2563eb;
    --auth-secondary: #6d5dfc;
    --auth-green: #159a6b;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--auth-bg);
    color: var(--auth-text);
}

.site-header {
    position: relative;
    z-index: 20;
    border-bottom: 0;
    background: #111827;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .12);
}

.header-inner {
    min-height: 74px;
}

.site-header .brand {
    color: #fff;
}

.site-header .brand img {
    width: 43px;
    height: 43px;
    object-fit: contain;
    padding: 4px;
    border-radius: 12px;
    background: #fff;
}

.site-header .brand-copy strong {
    color: #fff;
    font-size: 14px;
}

.site-header .brand-copy span {
    color: rgba(255, 255, 255, .5);
    font-size: 10px;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.main-nav a {
    color: rgba(255, 255, 255, .68);
}

.main-nav a:hover {
    color: #fff;
}

.site-header .button-ghost {
    border-color: rgba(255, 255, 255, .16);
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.site-header .button-primary {
    border-color: var(--auth-primary);
    background: var(--auth-primary);
    color: #fff;
}

.menu-button {
    border-color: rgba(255, 255, 255, .18);
    color: #fff;
}

.auth-page {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 150px);
    padding: 58px 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 13% 16%, rgba(37, 99, 235, .08), transparent 28%),
        radial-gradient(circle at 88% 82%, rgba(109, 93, 252, .08), transparent 28%),
        var(--auth-bg);
}

.auth-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    width: min(1050px, calc(100% - 36px));
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--auth-border);
    border-radius: 24px;
    background: var(--auth-surface);
    box-shadow: 0 24px 65px rgba(22, 32, 51, .12);
}

.auth-side {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 560px;
    padding: 54px;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 15%, rgba(109, 93, 252, .28), transparent 30%),
        linear-gradient(145deg, #111827 0%, #172554 62%, #1e3a8a 100%);
    color: #fff;
}

.auth-side::before,
.auth-side::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 50%;
}

.auth-side::before {
    width: 250px;
    height: 250px;
    right: -110px;
    top: -80px;
}

.auth-side::after {
    width: 180px;
    height: 180px;
    left: -85px;
    bottom: -75px;
}

.auth-side > * {
    position: relative;
    z-index: 1;
}

.auth-side > img {
    width: 68px;
    height: 68px;
    margin-bottom: 26px;
    object-fit: contain;
    padding: 7px;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}

.portal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: #dbeafe;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.portal-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, .12);
}

.auth-side h1 {
    max-width: 390px;
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(34px, 4vw, 47px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.06;
}

.auth-side p {
    max-width: 390px;
    margin: 0;
    color: rgba(255, 255, 255, .68);
    font-size: 14px;
    line-height: 1.75;
}

.auth-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 560px;
    padding: 58px 64px;
    background: #fff;
}

.portal-label {
    position: relative;
    margin-bottom: 9px;
    padding-left: 17px;
    color: var(--auth-primary);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.portal-label::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--auth-green);
    transform: translateY(-50%);
    box-shadow: 0 0 0 4px rgba(21, 154, 107, .10);
}

.auth-form > h1 {
    margin: 0 0 9px;
    color: var(--auth-text);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.035em;
}

.auth-form > p {
    margin: 0 0 27px;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.65;
}

.auth-error {
    margin-bottom: 20px;
    padding: 13px 15px;
    border: 1px solid #fecdd3;
    border-radius: 11px;
    background: #fff1f2;
    color: #be123c;
    font-size: 12px;
    line-height: 1.55;
}

.auth-form .form-grid {
    display: grid;
    gap: 18px;
}

.auth-form .form-group {
    margin: 0;
}

.auth-form label {
    display: block;
    margin-bottom: 7px;
    color: #344054;
    font-size: 12px;
    font-weight: 750;
}

.auth-form input {
    width: 100%;
    min-height: 49px;
    padding: 0 14px;
    border: 1px solid #dce3ed;
    border-radius: 11px;
    outline: 0;
    background: #fff;
    color: var(--auth-text);
    font-size: 14px;
    box-shadow: none;
    transition: .18s ease;
}

.auth-form input:focus {
    border-color: #7aa2f7;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .11);
}

.auth-forgot {
    margin: 14px 0 19px;
    text-align: right;
}

.auth-forgot a {
    color: var(--auth-primary);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.auth-forgot a:hover {
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    min-height: 49px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-secondary));
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .19);
}

.auth-submit:hover {
    background: var(--auth-primary);
    transform: translateY(-1px);
}

.site-footer {
    border-top: 1px solid var(--auth-border);
    background: #fff;
}

.site-footer .copyright {
    padding-top: 20px;
    padding-bottom: 20px;
    color: #94a3b8;
    font-size: 11px;
}

@media (max-width: 900px) {
    .auth-page {
        align-items: flex-start;
        padding: 34px 0;
    }

    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-side,
    .auth-form {
        min-height: auto;
    }

    .auth-side {
        padding: 38px;
    }

    .auth-side h1 {
        font-size: 34px;
    }

    .auth-form {
        padding: 42px 38px;
    }
}

@media (max-width: 600px) {
    .auth-layout {
        width: min(100% - 22px, 1050px);
        border-radius: 18px;
    }

    .auth-side,
    .auth-form {
        padding: 30px 23px;
    }

    .auth-side > img {
        width: 58px;
        height: 58px;
    }

    .auth-form > h1 {
        font-size: 28px;
    }
}
