@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");

:root {
    --forgot-green: #01311f;
    --forgot-gold: #e6bd29;
    --forgot-gold-hover: #d5aa17;
    --forgot-text: #262525;
    --forgot-muted: #63657e;
    --forgot-border: #cccccc;
    --forgot-link: #0077ff;
    --forgot-white: #ffffff;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    color: var(--forgot-text);
    background: var(--forgot-green);
    font-family: "Roboto", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input,
a {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

.forgot-shell {
    --field-height: clamp(52px, 7.2vh, 75px);
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 2.4vh, 30px);
    padding: clamp(16px, 3vh, 40px) 24px;
}

.forgot-card {
    display: flex;
    width: min(580px, calc(100vw - 32px));
    max-height: calc(100% - 70px);
    flex: 0 1 auto;
    flex-direction: column;
    align-items: center;
    padding: clamp(24px, 5.5vh, 61px) clamp(20px, 4vw, 55px) clamp(20px, 4.5vh, 48px);
    border-radius: 10px;
    background: var(--forgot-white);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.16);
}

.forgot-logo {
    display: block;
    width: clamp(200px, 24vh, 294px);
    max-width: 100%;
    height: auto;
    flex: 0 0 auto;
}

.forgot-header {
    width: min(470px, 100%);
    margin-top: clamp(16px, 4vh, 48px);
    text-align: center;
}

.forgot-header h1 {
    margin: 0;
    color: var(--forgot-text);
    font-size: clamp(26px, 3.6vh, 36px);
    font-weight: 700;
    line-height: 1.15;
}

.forgot-header p {
    margin: clamp(8px, 1.2vh, 12px) 0 0;
    color: #000000;
    font-size: clamp(15px, 1.8vh, 18px);
    font-weight: 400;
    line-height: 1.55;
}

.forgot-form {
    width: min(470px, 100%);
    margin-top: clamp(16px, 2.6vh, 25px);
}

.forgot-field {
    position: relative;
    margin: 0 0 clamp(16px, 2.8vh, 30px);
}

.forgot-field input {
    width: 100%;
    height: var(--field-height);
    padding: 0 18px 0 49px;
    border: 1px solid var(--forgot-border);
    border-radius: 5px;
    outline: none;
    color: var(--forgot-text);
    background: var(--forgot-white);
    font-size: clamp(16px, 1.8vh, 18px);
}

.forgot-field input::placeholder {
    color: var(--forgot-muted);
    opacity: 1;
}

.forgot-field input:hover {
    border-color: #9b9cac;
}

.forgot-field input:focus {
    border-color: var(--forgot-link);
    box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.14);
}

.forgot-field-icon {
    position: absolute;
    top: calc((var(--field-height) - 24px) / 2);
    left: 15px;
    width: 24px;
    height: 24px;
    color: var(--forgot-muted);
    pointer-events: none;
}

.forgot-field-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.forgot-primary {
    width: 100%;
    height: clamp(44px, 5.6vh, 57px);
    border: 0;
    border-radius: 10px;
    color: var(--forgot-text);
    background: var(--forgot-gold);
    font-size: clamp(16px, 2vh, 20px);
    font-weight: 700;
    cursor: pointer;
}

.forgot-divider {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: clamp(14px, 2.2vh, 24px) 0 clamp(10px, 1.5vh, 15px);
    color: #000000;
    font-size: clamp(16px, 2vh, 20px);
    line-height: 1;
}

.forgot-divider::before,
.forgot-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--forgot-border);
}

.forgot-back {
    display: flex;
    width: 100%;
    height: clamp(44px, 5.6vh, 57px);
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--forgot-green);
    border-radius: 10px;
    color: var(--forgot-text);
    background: var(--forgot-white);
    font-size: clamp(16px, 2vh, 20px);
    font-weight: 700;
    text-decoration: none;
}

.forgot-back svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: #1f1f1f;
}

.forgot-back:hover {
    background: #f7f7f7;
    color: var(--forgot-text);
}

.forgot-back:focus-visible {
    outline: 3px solid rgba(0, 119, 255, 0.34);
    outline-offset: 3px;
}

.forgot-support {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: clamp(16px, 3vh, 33px) 0 0;
    color: #000000;
    font-size: clamp(14px, 1.8vh, 18px);
    line-height: 1.3;
}

.forgot-support svg {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: #1f1f1f;
}

.forgot-support-label {
    color: var(--forgot-link);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.forgot-assurances {
    display: block;
    width: min(897px, calc(100vw - 48px));
    height: auto;
    flex: 0 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 700px) {
    html,
    body {
        height: auto;
        min-height: 100%;
        overflow: auto;
    }

    .forgot-shell {
        min-height: 100dvh;
        height: auto;
        justify-content: center;
        gap: 24px;
        padding: 24px 16px;
    }

    .forgot-card {
        width: 100%;
        max-height: none;
        padding: 38px 28px 32px;
    }

    .forgot-logo {
        width: 230px;
    }

    .forgot-header,
    .forgot-form {
        width: 100%;
    }

    .forgot-header {
        margin-top: 28px;
    }

    .forgot-header h1 {
        font-size: 28px;
    }

    .forgot-header p {
        margin-top: 10px;
        font-size: 16px;
        line-height: 24px;
    }

    .forgot-field input {
        height: 58px;
        font-size: 16px;
    }

    .forgot-field-icon {
        top: 17px;
    }

    .forgot-primary,
    .forgot-back {
        height: 52px;
        font-size: 18px;
    }

    .forgot-support {
        margin-top: 24px;
        font-size: 15px;
    }

    .forgot-assurances {
        width: min(520px, calc(100vw - 40px));
    }
}

@media (max-width: 460px) {
    .forgot-card {
        padding: 32px 20px 28px;
    }

    .forgot-logo {
        width: 205px;
    }

    .forgot-assurances {
        display: none;
    }
}
