:root {
    color-scheme: dark;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: #070a0f;
    color: #f5f7fb;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
}

button,
input {
    font: inherit;
}

.reset-page {
    display: grid;
    min-height: 100vh;
    padding: 24px;
    place-items: center;
    background:
        radial-gradient(circle at 15% 15%, rgba(76, 175, 80, 0.15), transparent 34%),
        radial-gradient(circle at 88% 76%, rgba(33, 118, 255, 0.12), transparent 30%),
        #070a0f;
}

.reset-card {
    position: relative;
    width: min(100%, 440px);
    padding: 34px 40px 38px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(15, 20, 30, 0.95);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52);
}

.reset-card::before {
    position: absolute;
    top: 0;
    right: 12%;
    left: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4caf50, transparent);
    content: "";
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 38px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(145deg, #55c95d, #218838);
    box-shadow: 0 8px 22px rgba(76, 175, 80, 0.25);
    font-size: 17px;
    letter-spacing: 0;
}

.eyebrow {
    margin: 0;
    color: #78d27d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1 {
    margin: 7px 0 13px;
    color: #fff;
    font-size: clamp(27px, 7vw, 36px);
    line-height: 1.12;
}

.lead,
.success-state > p {
    margin: 0 0 28px;
    color: #9da8bc;
    font-size: 15px;
    line-height: 1.65;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: #cbd3e0;
    font-size: 13px;
    font-weight: 700;
}

.field input {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
    background: #0a0f18;
    color: #fff;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus {
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.14);
}

#send-button {
    display: block;
    width: 100%;
    padding: 14px 18px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #4caf50, #218838);
    box-shadow: 0 12px 24px rgba(76, 175, 80, 0.2);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}

#send-button:hover {
    filter: brightness(1.08);
}

#send-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.form-message {
    min-height: 20px;
    margin: 11px 0 0;
    color: #ff9189;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.back-link {
    display: block;
    margin-top: 26px;
    color: #9db5d9;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
}

.back-link:hover {
    color: #fff;
    text-decoration: underline;
}

.success-state {
    padding-top: 8px;
    text-align: center;
}

.state-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 0 auto 19px;
    place-items: center;
    border-radius: 16px;
    background: rgba(76, 175, 80, 0.14);
    color: #72dd78;
    font-size: 24px;
    font-weight: 800;
}

[hidden] {
    display: none !important;
}

@media (max-width: 520px) {
    .reset-page {
        padding: 14px;
        place-items: start center;
    }

    .reset-card {
        padding: 27px 22px 30px;
        border-radius: 18px;
    }
}
