:root {
    --navy: #002c4f;
    --gold: #f2a52b;
    --gold-dark: #b86600;
    --gold-soft: #fff5e6;
    --text: #08294a;
    --muted: #657386;
    --border: #dfe4ea;
    --white: #ffffff;
    --red: #9b1c1c;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        linear-gradient(135deg, rgba(0, 44, 79, 0.96), rgba(1, 38, 69, 0.94)),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 6px);
}

.recovery-shell {
    width: 100%;
    max-width: 500px;
}

.recovery-logo {
    margin-bottom: 24px;
    text-align: center;
}

.recovery-logo img {
    width: min(340px, 86vw);
    height: auto;
}

.recovery-card {
    overflow: hidden;
    padding: 30px;
    background: var(--white);
    border: 1px solid rgba(242, 165, 43, 0.35);
    border-top: 5px solid var(--gold);
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(0, 18, 34, 0.28);
}

.recovery-kicker {
    margin: 0 0 8px;
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.14em;
}

h1 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 6vw, 36px);
    line-height: 1.1;
}

.recovery-description {
    margin: 12px 0 24px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

label {
    color: var(--navy);
    font-size: 14px;
    font-weight: bold;
}

input {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    color: #1f2937;
    font: inherit;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
}

input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(242, 165, 43, 0.16);
}

input:disabled {
    color: #40556d;
    background: #eef3f7;
    cursor: not-allowed;
}

.confirmation-field label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.confirmation-field input {
    width: 18px;
    min-height: 18px;
    flex: 0 0 18px;
    accent-color: var(--gold);
}

.help-text,
.help-text ul {
    margin: 3px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.field-errors,
.form-errors {
    margin: 6px 0 16px;
    color: var(--red);
    font-size: 13px;
    font-weight: bold;
}

.field-errors ul,
.form-errors ul {
    margin: 0;
    padding-left: 18px;
}

.primary-button,
.primary-link {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    color: var(--white);
    background: var(--navy);
    border: 1px solid var(--navy);
    border-radius: 8px;
    font: inherit;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.primary-button:hover,
.primary-link:hover {
    box-shadow: 0 8px 18px rgba(0, 44, 79, 0.22);
    transform: translateY(-1px);
}

.secondary-link {
    display: block;
    margin-top: 18px;
    color: var(--gold-dark);
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
}

.secondary-link:hover {
    text-decoration: underline;
}

.security-note {
    margin-top: 20px;
    padding: 13px 14px;
    color: #5d4320;
    background: var(--gold-soft);
    border: 1px solid #f0d3a3;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 520px) {
    body {
        padding: 18px;
    }

    .recovery-card {
        padding: 24px 20px;
    }
}
