/* Driving Instructors Diary — Pupil Forgot Password
   Matches the premium Admin / Instructor authentication styling.
*/

:root {
    --did-bg: #f4f7fb;
    --did-surface: #ffffff;
    --did-border: #e2e8f0;
    --did-text: #172033;
    --did-muted: #718096;
    --did-primary: #2f63ee;
    --did-primary-dark: #2556d8;
    --did-primary-soft: #edf3ff;
    --did-violet: #6d5dfc;
    --did-green: #18b890;
    --did-green-soft: #eaf9f4;
    --did-radius: 20px;
    --did-shadow: 0 18px 50px rgba(22, 32, 51, 0.10);
}

html,
body {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    background: var(--did-bg);
    color: var(--did-text);
}

/* Header */

.site-header {
    position: relative;
    z-index: 10;
    background: #0f172a;
    border-bottom: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 4px 18px rgba(15,23,42,.10);
}

.site-header .header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
}

.site-header .brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-header .brand > img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    padding: 6px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--did-primary), var(--did-violet));
}

.site-header .brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-header .brand-copy strong {
    color: #fff;
    font-size: 16px;
    font-weight: 750;
    letter-spacing: -.2px;
}

.site-header .brand-copy span {
    margin-top: 4px;
    color: rgba(255,255,255,.52);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Layout */

.auth-page {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 58px 0;
    background:
        radial-gradient(circle at 14% 20%, rgba(47,99,238,.07), transparent 30%),
        radial-gradient(circle at 88% 82%, rgba(109,93,252,.06), transparent 28%),
        var(--did-bg);
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(420px, .72fr);
    gap: 0;
    max-width: 1050px;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--did-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--did-shadow);
}

/* Left panel */

.auth-side {
    position: relative;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px;
    overflow: hidden;
    background:
        linear-gradient(145deg, #101a31 0%, #152443 55%, #1b2d52 100%);
    color: #fff;
}

.auth-side::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -130px;
    top: -130px;
    border-radius: 50%;
    background: rgba(47,99,238,.20);
}

.auth-side::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    left: -105px;
    bottom: -110px;
    border-radius: 50%;
    background: rgba(109,93,252,.13);
}

.auth-side > * {
    position: relative;
    z-index: 1;
}

.auth-side > img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 28px;
    padding: 9px;
    border-radius: 17px;
    background: linear-gradient(135deg, var(--did-primary), var(--did-violet));
    box-shadow: 0 14px 30px rgba(0,0,0,.16);
}

.portal-badge,
.portal-label {
    width: fit-content;
    color: var(--did-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.auth-side .portal-badge {
    margin-bottom: 12px;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: #a9c2ff;
}

.auth-side h1 {
    max-width: 420px;
    margin: 0;
    color: #fff;
    font-size: 38px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1px;
}

.auth-side p {
    max-width: 430px;
    margin: 16px 0 0;
    color: rgba(255,255,255,.66);
    font-size: 15px;
    line-height: 1.65;
}

/* Form panel */

.auth-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px 48px;
    background: #fff;
}

.auth-form .portal-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 11px;
}

.auth-form .portal-label::before {
    content: "";
    width: 9px;
    height: 9px;
    border: 3px solid #c7f1e5;
    border-radius: 50%;
    background: var(--did-green);
    box-shadow: 0 0 0 4px rgba(24,184,144,.08);
}

.auth-form > h1 {
    margin: 0;
    color: var(--did-text);
    font-size: 30px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.7px;
}

.auth-form > p {
    margin: 10px 0 25px;
    color: var(--did-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Messages */

.auth-error,
.auth-success {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 11px;
    font-size: 13px;
    line-height: 1.5;
}

.auth-error {
    border: 1px solid #fecdd3;
    background: #fff1f2;
    color: #be123c;
}

.auth-success {
    border: 1px solid #bde9da;
    background: var(--did-green-soft);
    color: #117a5b;
}

/* Form */

.auth-form form {
    margin: 0;
}

.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: 12.5px;
    font-weight: 700;
}

.auth-form input[type="email"] {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #d7deea;
    border-radius: 11px;
    outline: none;
    background: #fff;
    color: var(--did-text);
    font-size: 14px;
    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.auth-form input[type="email"]:focus {
    border-color: #8eaffd;
    box-shadow: 0 0 0 4px rgba(47,99,238,.09);
}

.auth-submit {
    width: 100% !important;
    min-height: 48px;
    margin-top: 19px;
    border: 1px solid var(--did-primary) !important;
    border-radius: 11px !important;
    background: linear-gradient(180deg,#3e72f5 0%,#2f63ee 100%) !important;
    color: #fff !important;
    font-size: 13.5px;
    font-weight: 750;
    box-shadow: 0 9px 20px rgba(47,99,238,.18);
}

.auth-submit:hover {
    border-color: var(--did-primary-dark) !important;
    background: var(--did-primary-dark) !important;
}

.auth-back-link {
    margin: 20px 0 0;
    text-align: center;
}

.auth-back-link a {
    color: var(--did-primary);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.auth-back-link a:hover {
    color: var(--did-primary-dark);
    text-decoration: underline;
}

/* Footer */

.site-footer {
    background: #fff;
    border-top: 1px solid var(--did-border);
}

.site-footer .copyright {
    padding-top: 20px;
    padding-bottom: 20px;
    color: var(--did-muted);
    font-size: 12.5px;
    text-align: center;
}

/* Responsive */

@media (max-width: 900px) {
    .auth-page {
        align-items: flex-start;
        padding: 34px 18px;
    }

    .auth-layout {
        grid-template-columns: 1fr;
        max-width: 620px;
    }

    .auth-side {
        min-height: auto;
        padding: 38px;
    }

    .auth-side > img {
        width: 54px;
        height: 54px;
        margin-bottom: 20px;
    }

    .auth-side h1 {
        font-size: 31px;
    }

    .auth-form {
        padding: 38px;
    }
}

@media (max-width: 575.98px) {
    .site-header .header-inner {
        min-height: 68px;
    }

    .site-header .brand > img {
        width: 39px;
        height: 39px;
    }

    .site-header .brand-copy strong {
        font-size: 14px;
    }

    .auth-page {
        padding: 22px 14px;
    }

    .auth-layout {
        border-radius: 18px;
    }

    .auth-side,
    .auth-form {
        padding: 28px 22px;
    }

    .auth-side h1 {
        font-size: 28px;
    }

    .auth-form > h1 {
        font-size: 27px;
    }
}
