/* Driving Instructors Diary — Premium Admin Login */

.did-login-body {
    min-height: 100vh;
    background: #f4f7fb;
    color: #26344b;
}

.did-login-header {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid #e7ebf1;
    backdrop-filter: blur(14px);
}

.did-login-main {
    padding: 48px 24px;
}

.did-login-shell {
    width: min(1180px, 100%);
    min-height: 610px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #e1e7ef;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .09);
}

.did-login-showcase {
    position: relative;
    display: flex;
    align-items: center;
    padding: 54px;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 10%, rgba(77, 119, 255, .25), transparent 33%),
        radial-gradient(circle at 90% 90%, rgba(36, 199, 163, .16), transparent 32%),
        linear-gradient(145deg, #0d1c34 0%, #10294d 55%, #12355f 100%);
}

.did-login-showcase::after {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    right: -150px;
    top: -145px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    box-shadow:
        0 0 0 55px rgba(255, 255, 255, .025),
        0 0 0 110px rgba(255, 255, 255, .018);
}

.did-login-showcase-inner {
    position: relative;
    z-index: 1;
    max-width: 510px;
}

.did-login-brand-mark {
    width: 154px;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 28px;
    overflow: hidden;
}

.did-login-brand-mark img {
    display: block;
    width: 154px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.did-login-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
    color: #a9c8ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.did-login-eyebrow > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #27c9a1;
    box-shadow: 0 0 0 6px rgba(39, 201, 161, .12);
}

.did-login-showcase h1 {
    max-width: 500px;
    margin: 0;
    color: #fff;
    font-size: clamp(36px, 4vw, 51px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.04em;
}

.did-login-showcase h1 span {
    color: #79a8ff;
}

.did-login-intro {
    max-width: 490px;
    margin: 19px 0 30px;
    color: #c1ccda;
    font-size: 16px;
    line-height: 1.65;
}

.did-login-feature-grid {
    display: grid;
    gap: 11px;
}

.did-login-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 13px;
    background: rgba(255, 255, 255, .055);
}

.did-login-feature > span {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    flex: 0 0 39px;
    border-radius: 10px;
    background: rgba(111, 157, 255, .16);
    color: #9fc0ff;
    font-size: 18px;
}

.did-login-feature strong {
    display: block;
    color: #f7faff;
    font-size: 14px;
}

.did-login-feature small {
    display: block;
    margin-top: 2px;
    color: #aebdce;
    font-size: 12.5px;
}

.did-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background: #fff;
}

.did-login-card {
    width: min(390px, 100%);
}

.did-login-card-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 19px;
    border: 1px solid #d8e5ff;
    border-radius: 14px;
    background: #edf4ff;
    color: #2563eb;
    font-size: 22px;
}

.did-login-card-kicker {
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.did-login-card h2 {
    margin: 6px 0 0;
    color: #142038;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.03em;
}

.did-login-card-copy {
    margin: 8px 0 23px;
    color: #7b8799;
    font-size: 14px;
    line-height: 1.55;
}

.did-login-error {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 17px;
    padding: 12px 13px;
    border: 1px solid #efcccc;
    border-radius: 10px;
    background: #fff2f2;
    color: #a84040;
    font-size: 13px;
    line-height: 1.45;
}

.did-login-error i {
    margin-top: 1px;
    font-size: 18px;
}

.did-login-field {
    margin-bottom: 17px;
}

.did-login-field label {
    display: block;
    margin-bottom: 7px;
    color: #536176;
    font-size: 13px;
    font-weight: 800;
}

.did-login-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.did-login-label-row a {
    margin-bottom: 7px;
    color: #2563eb;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
}

.did-login-label-row a:hover,
.did-login-signup a:hover {
    text-decoration: underline;
}

.did-login-input {
    position: relative;
}

.did-login-input i {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #8c98a9;
    font-size: 18px;
    pointer-events: none;
}

.did-login-input input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px 0 43px;
    border: 1px solid #d9e1eb;
    border-radius: 11px;
    outline: none;
    background: #fff;
    color: #2f3e54;
    font: inherit;
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.did-login-input input:focus {
    border-color: #9fc0ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}

.did-login-input input::placeholder {
    color: #a0a9b7;
}

.did-login-submit {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 5px;
    border: 0;
    border-radius: 11px;
    background: #356cf1;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(53, 108, 241, .18);
}

.did-login-submit:hover {
    background: #2e61d8;
}

.did-login-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 14px;
    color: #9aa5b4;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
}

.did-login-divider::before,
.did-login-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e7ebf1;
}

.did-login-signup {
    margin: 0;
    color: #7b8799;
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
}

.did-login-signup a {
    color: #2563eb;
    font-weight: 800;
    text-decoration: none;
}

.did-login-footer {
    padding: 0 24px 30px;
}

.did-login-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #8a96a7;
    font-size: 12.5px;
}

.did-login-footer div div {
    display: flex;
    gap: 18px;
}

.did-login-footer a {
    color: #758297;
    text-decoration: none;
}

.did-login-footer a:hover {
    color: #2563eb;
}

@media (max-width: 980px) {
    .did-login-shell {
        grid-template-columns: 1fr;
    }

    .did-login-showcase {
        padding: 38px;
    }

    .did-login-showcase h1 {
        max-width: 650px;
    }

    .did-login-feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .did-login-feature {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .did-login-main {
        padding: 22px 14px;
    }

    .did-login-shell {
        border-radius: 18px;
    }

    .did-login-showcase {
        padding: 28px 22px;
    }

    .did-login-brand-mark {
        margin-bottom: 20px;
    }

    .did-login-showcase h1 {
        font-size: 34px;
    }

    .did-login-intro {
        font-size: 14px;
    }

    .did-login-feature-grid {
        grid-template-columns: 1fr;
    }

    .did-login-panel {
        padding: 32px 22px;
    }

    .did-login-card h2 {
        font-size: 28px;
    }

    .did-login-footer .container {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   LOGIN VISUAL CORRECTIONS
   ========================================================= */

/* The public-site stylesheet uses light navigation text for its hero.
   The login header is white, so force proper readable colours here. */
.did-login-header .brand-copy strong {
    color: #17233a !important;
}

.did-login-header .brand-copy span {
    color: #2563eb !important;
}

.did-login-header .main-nav a,
.did-login-header .button-ghost,
.did-login-header .menu-button {
    color: #4f5f75 !important;
}

.did-login-header .main-nav a:hover,
.did-login-header .button-ghost:hover {
    color: #2563eb !important;
}

.did-login-header .header-actions .button-primary {
    color: #fff !important;
}

/* Keep the real logo contained in the website header. */
.did-login-header .brand > img {
    width: 64px !important;
    height: 64px !important;
    max-width: 64px !important;
    object-fit: contain !important;
    border-radius: 14px;
}

/* Inline SVG icons replace the Tabler icon font on this standalone page. */
.did-login-feature svg,
.did-login-card-icon svg,
.did-input-svg,
.did-button-svg,
.did-error-svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.did-login-feature svg {
    width: 20px;
    height: 20px;
}

.did-login-card-icon svg {
    width: 23px;
    height: 23px;
}

.did-input-svg {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #8c98a9;
    pointer-events: none;
}

.did-button-svg {
    width: 18px;
    height: 18px;
}

.did-error-svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 1px;
}

/* Prevent the old icon-font selector affecting our SVG inputs. */
.did-login-input > i {
    display: none;
}

/* Without the oversized second logo, the left panel starts cleanly. */
.did-login-showcase-inner {
    padding-top: 4px;
}

@media (max-width: 980px) {
    .did-login-header .brand > img {
        width: 56px !important;
        height: 56px !important;
        max-width: 56px !important;
    }
}

