* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #e8f2ec 0%, #ffffff 52%, rgba(190, 220, 198, 0.45) 100%);
    color: #2c2c2a;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.reset-shell { width: 100%; max-width: 460px; }

.logo-row { display: flex; justify-content: center; margin-bottom: 28px; }
.logo-row img { width: min(320px, 82vw); height: auto; }

.reset-card {
    padding: 32px;
    border: 1px solid #bedcc6;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(232, 242, 236, 0.7) 0%, #ffffff 62%);
    box-shadow: 0 4px 20px -4px rgba(15, 83, 54, 0.14);
}

h1 { color: #0f5336; font-size: 24px; line-height: 1.25; }
.accent { width: 40px; height: 2px; margin: 12px 0 16px; border-radius: 1px; background: #a21400; }
.intro, .message { margin-bottom: 22px; color: #5f6873; font-size: 14px; line-height: 1.6; }

.form-group { margin-bottom: 17px; }
label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; }
input[type="email"], input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #d8ddd9;
    border-radius: 8px;
    background: #fafaf8;
    color: #202320;
    font: inherit;
}
input:focus { outline: none; border-color: #0f5336; box-shadow: 0 0 0 3px rgba(15, 83, 54, 0.1); background: #fff; }

.hint { margin-top: 6px; color: #6b7280; font-size: 12px; line-height: 1.45; }
.button {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border: 1px solid #0f5336;
    border-radius: 8px;
    background: #0f5336;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}
.button:hover, .button:focus-visible { background: #0a3d27; }

.error-box, .success-box {
    margin-bottom: 18px;
    padding: 11px 13px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}
.error-box { border: 1px solid rgba(162, 20, 0, 0.35); background: #f9e8e5; color: #8f1808; }
.success-box { border: 1px solid rgba(15, 83, 54, 0.3); background: #e8f2ec; color: #0f5336; }

.footer-link { margin-top: 20px; text-align: center; font-size: 13px; }
.footer-link a { color: #0f5336; font-weight: 600; text-underline-offset: 3px; }

@media (max-width: 520px) {
    body { padding: 16px; align-items: flex-start; }
    .reset-shell { margin-top: 24px; }
    .reset-card { padding: 24px 20px; }
    h1 { font-size: 21px; }
}
