/* =========================================================
   Driving Instructors Diary
   Admin - Forgot Password
   Premium readable authentication UI
   ========================================================= */

.did-auth-body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(53,108,241,.08),
            transparent 30%
        ),
        #f4f7fb;
    color: #26344b;
}

.did-auth-header {
    border-bottom: 1px solid #e2e7ef;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
}

.did-auth-header-inner {
    width: min(1180px, calc(100% - 40px));
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto;
}

.did-auth-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #17233c;
    text-decoration: none;
}

.did-auth-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.did-auth-brand > div {
    display: flex;
    flex-direction: column;
}

.did-auth-brand strong {
    font-size: 15px;
    font-weight: 800;
}

.did-auth-brand span {
    margin-top: 1px;
    color: #7d899c;
    font-size: 12px;
}

.did-secure-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #66758a;
    font-size: 12px;
    font-weight: 700;
}

.did-secure-label i {
    color: #168a59;
    font-size: 17px;
}

.did-auth-main {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 44px 20px;
}

.did-auth-shell {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(420px, 1fr);
    overflow: hidden;
    border: 1px solid #dfe5ee;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(15,23,42,.09);
}

.did-auth-intro {
    position: relative;
    overflow: hidden;
    padding: 48px 42px;
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(91,138,255,.24),
            transparent 32%
        ),
        linear-gradient(145deg, #111d36, #172a52);
    color: #fff;
}

.did-auth-intro::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -100px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255,255,255,.035);
}

.did-auth-logo-wrap {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 18px;
    background: rgba(255,255,255,.08);
}

.did-auth-logo-wrap img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.did-portal-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid rgba(125,166,255,.3);
    border-radius: 999px;
    background: rgba(53,108,241,.18);
    color: #b9d0ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.did-auth-intro h1 {
    max-width: 360px;
    margin: 16px 0 0;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.03em;
}

.did-auth-intro > p {
    max-width: 380px;
    margin: 12px 0 0;
    color: #c0cade;
    font-size: 14px;
    line-height: 1.65;
}

.did-security-points {
    display: grid;
    gap: 14px;
    margin-top: 34px;
}

.did-security-points > div {
    display: grid;
    grid-template-columns: 38px minmax(0,1fr);
    align-items: center;
    gap: 11px;
}

.did-security-points > div > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    color: #9ebcff;
    font-size: 17px;
}

.did-security-points > div > div {
    display: flex;
    flex-direction: column;
}

.did-security-points strong {
    font-size: 13px;
    font-weight: 800;
}

.did-security-points small {
    margin-top: 2px;
    color: #aebbd0;
    font-size: 12px;
    line-height: 1.4;
}

.did-auth-card {
    padding: 50px 44px;
}

.did-section-label {
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.did-auth-card-heading h2 {
    margin: 5px 0 0;
    color: #17233c;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.025em;
}

.did-auth-card-heading p {
    margin: 8px 0 0;
    color: #7b8799;
    font-size: 14px;
    line-height: 1.55;
}

.did-auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 20px;
    padding: 13px 14px;
    border-radius: 11px;
    font-size: 13px;
    line-height: 1.45;
}

.did-auth-alert i {
    margin-top: 1px;
    font-size: 18px;
}

.did-auth-alert.danger {
    border: 1px solid #efcece;
    background: #fff4f4;
    color: #ad3d3d;
}

.did-auth-alert.success {
    border: 1px solid #ccebdc;
    background: #effbf5;
    color: #18734b;
}

.did-auth-card form {
    margin-top: 25px;
}

.did-form-group label {
    display: block;
    margin-bottom: 7px;
    color: #56647a;
    font-size: 13px;
    font-weight: 800;
}

.did-input-wrap {
    position: relative;
}

.did-input-wrap > i {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 2;
    transform: translateY(-50%);
    color: #8c98aa;
    font-size: 18px;
    pointer-events: none;
}

.did-input-wrap input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 43px;
    border: 1px solid #d9e0e9;
    border-radius: 11px;
    outline: none;
    background: #fff;
    color: #29364d;
    font-size: 14px;
    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.did-input-wrap input::placeholder {
    color: #a3adbb;
}

.did-input-wrap input:focus {
    border-color: #8fb2fa;
    box-shadow: 0 0 0 4px rgba(37,99,235,.08);
}

.did-submit-button {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 17px;
    border: 0;
    border-radius: 11px;
    background: #356cf1;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 9px 20px rgba(53,108,241,.2);
}

.did-submit-button:hover {
    background: #2d5fd8;
}

.did-back-login {
    margin-top: 18px;
    text-align: center;
}

.did-back-login a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #52637a;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.did-back-login a:hover {
    color: #2563eb;
}

.did-help-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid #edf0f5;
}

.did-help-note > i {
    margin-top: 1px;
    color: #7e8da3;
    font-size: 17px;
}

.did-help-note p {
    margin: 0;
    color: #8793a5;
    font-size: 12px;
    line-height: 1.55;
}

.did-auth-footer {
    border-top: 1px solid #e2e7ef;
    background: #fff;
}

.did-auth-footer > div {
    width: min(1180px, calc(100% - 40px));
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto;
    color: #8b96a7;
    font-size: 12px;
}

@media (max-width: 820px) {
    .did-auth-shell {
        grid-template-columns: 1fr;
    }

    .did-auth-intro {
        padding: 34px 30px;
    }

    .did-security-points {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }

    .did-security-points > div {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .did-auth-card {
        padding: 38px 30px;
    }
}

@media (max-width: 620px) {
    .did-secure-label {
        display: none;
    }

    .did-auth-header-inner {
        width: min(100% - 28px, 1180px);
    }

    .did-auth-main {
        padding: 24px 14px;
    }

    .did-auth-shell {
        border-radius: 17px;
    }

    .did-auth-intro,
    .did-auth-card {
        padding: 28px 22px;
    }

    .did-security-points {
        grid-template-columns: 1fr;
    }

    .did-security-points > div {
        grid-template-columns: 38px minmax(0,1fr);
    }

    .did-auth-intro h1 {
        font-size: 29px;
    }

    .did-auth-card-heading h2 {
        font-size: 25px;
    }

    .did-auth-footer > div {
        min-height: 68px;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        text-align: center;
    }
}

/* =========================================================
   FORGOT PASSWORD VISUAL FIXES
   ========================================================= */

.did-inline-icon,
.did-input-icon,
.did-button-icon,
.did-link-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.did-secure-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.did-secure-label .did-inline-icon {
    width: 17px;
    height: 17px;
}

.did-security-points > div > span {
    display: grid;
    place-items: center;
}

.did-security-points > div > span .did-inline-icon {
    width: 20px;
    height: 20px;
}

.did-auth-alert .did-inline-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 1px;
}

.did-input-wrap {
    position: relative;
}

.did-input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #8a96a8;
    pointer-events: none;
}

.did-input-wrap input {
    padding-left: 43px !important;
}

.did-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.did-button-icon {
    width: 18px;
    height: 18px;
}

.did-back-login a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.did-link-icon {
    width: 17px;
    height: 17px;
}

.did-help-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.did-help-note > .did-inline-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 2px;
}

/* Make the branding treatment closer to the approved login page. */
.did-auth-logo-wrap {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    background: rgba(255,255,255,.07);
}

.did-auth-logo-wrap img {
    width: 68px;
    height: 68px;
    max-width: 68px;
    object-fit: contain;
}

.did-auth-header .did-auth-brand img {
    width: 52px;
    height: 52px;
    max-width: 52px;
    object-fit: contain;
    border-radius: 12px;
}

@media (max-width: 700px) {
    .did-auth-logo-wrap {
        width: 72px;
        height: 72px;
    }

    .did-auth-logo-wrap img {
        width: 60px;
        height: 60px;
        max-width: 60px;
    }
}

/* =========================================================
   SAFE ICON FALLBACK — NO INLINE SVG
   Prevents collisions with global public-site SVG rules.
   ========================================================= */

.did-safe-symbol,
.did-input-symbol,
.did-button-symbol,
.did-link-symbol,
.did-security-symbol,
.did-alert-symbol,
.did-info-symbol {
    font-family: Arial, sans-serif !important;
    line-height: 1 !important;
    text-align: center;
}

.did-secure-label {
    display: inline-flex;
    align-items: center;
    color: #607087;
    font-size: 12.5px;
    font-weight: 800;
}

.did-security-symbol {
    width: 36px !important;
    height: 36px !important;
    display: grid !important;
    place-items: center !important;
    flex: 0 0 36px !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,.08) !important;
    color: #a9c8ff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.did-input-symbol {
    position: absolute !important;
    top: 50% !important;
    left: 14px !important;
    width: 18px !important;
    height: 18px !important;
    transform: translateY(-50%) !important;
    color: #8794a7 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    pointer-events: none !important;
}

.did-button-symbol,
.did-link-symbol {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    color: currentColor !important;
    font-size: 16px !important;
    font-weight: 800 !important;
}

.did-alert-symbol,
.did-info-symbol {
    width: 20px !important;
    height: 20px !important;
    display: grid !important;
    place-items: center !important;
    flex: 0 0 20px !important;
    border-radius: 50% !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

.did-alert-symbol {
    background: #fee2e2 !important;
    color: #b91c1c !important;
}

.did-alert-symbol.success {
    background: #dcfce7 !important;
    color: #15803d !important;
}

.did-info-symbol {
    background: #dbeafe !important;
    color: #2563eb !important;
}

/* Hide any SVG that may remain inside this page from older markup/caching. */
.did-auth-body svg {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Keep the form comfortably sized and stop visual overflow. */
.did-auth-card,
.did-auth-intro {
    min-width: 0;
}

.did-auth-card {
    overflow: hidden;
}

.did-input-wrap input {
    width: 100% !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
}

/* =========================================================
   FINAL FORGOT PASSWORD POLISH
   Remove decorative glyphs that were sitting outside controls.
   ========================================================= */

.did-input-wrap input {
    padding-left: 16px !important;
}

.did-submit-button {
    gap: 0 !important;
}

.did-back-login a {
    gap: 0 !important;
}

.did-help-note {
    display: block !important;
}

.did-help-note p {
    margin: 0 !important;
}

/* Keep the form card visually balanced with the left panel. */
.did-auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 48px !important;
    padding-bottom: 48px !important;
}

/* Slightly improve spacing around the form field and support note. */
.did-form-group {
    margin-top: 26px;
}

.did-submit-button {
    margin-top: 8px;
}

.did-back-login {
    margin-top: 18px;
}

.did-help-note {
    margin-top: 28px;
    padding-top: 22px;
}

/* Make the secure label cleaner in the header. */
.did-secure-label {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

/* Ensure nothing from older symbol rules can leak into layout. */
.did-input-symbol,
.did-info-symbol,
.did-button-symbol,
.did-link-symbol {
    display: none !important;
}

