:root {
    --reset-brand: #2f6287;
    --reset-brand-dark: #234a66;
    --reset-surface: #ffffff;
    --reset-surface-soft: #f3f7fb;
    --reset-border: #d8e2ee;
    --reset-text: #183247;
    --reset-muted: #647789;
    --reset-success-bg: #e7f7ec;
    --reset-success-text: #166534;
    --reset-error-bg: #fdecec;
    --reset-error-text: #b42318;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    font-family: "Urbanist", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(47, 98, 135, 0.16), transparent 28%),
        linear-gradient(135deg, #eef4fa 0%, #f8fbfd 45%, #ffffff 100%);
    color: var(--reset-text);
}

.auth-shell {
    width: min(100%, 480px);
}

.auth-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(216, 226, 238, 0.9);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 24px 60px rgba(24, 50, 71, 0.12);
    backdrop-filter: blur(10px);
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-logo img {
    width: 84px;
    height: auto;
}

h1 {
    margin: 0 0 0.75rem;
    text-align: center;
    font-size: 2rem;
    line-height: 1.1;
    color: var(--reset-brand-dark);
}

.auth-copy {
    margin: 0 0 1.75rem;
    text-align: center;
    color: var(--reset-muted);
    font-size: 1rem;
    line-height: 1.55;
}

.flash-message {
    border-radius: 14px;
    padding: 0.95rem 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.45;
}

.flash-message.success {
    background: var(--reset-success-bg);
    color: var(--reset-success-text);
}

.flash-message.error {
    background: var(--reset-error-bg);
    color: var(--reset-error-text);
}

.flash-message a {
    color: inherit;
    font-weight: 700;
}

form {
    display: grid;
    gap: 1rem;
}

.field {
    display: grid;
    gap: 0.45rem;
}

.field-hint {
    margin: 0;
    color: var(--reset-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

label {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--reset-brand-dark);
}

input {
    width: 100%;
    border: 1px solid var(--reset-border);
    border-radius: 14px;
    padding: 0.95rem 1rem;
    font: inherit;
    background: var(--reset-surface-soft);
    color: var(--reset-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input:focus {
    outline: none;
    border-color: var(--reset-brand);
    background: var(--reset-surface);
    box-shadow: 0 0 0 4px rgba(47, 98, 135, 0.14);
}

.submit-btn,
.back-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 52px;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
}

.submit-btn {
    border: none;
    background: var(--reset-brand);
    color: #fff;
    cursor: pointer;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background: var(--reset-brand-dark);
}

.back-link {
    color: var(--reset-brand);
    border: 1px solid var(--reset-border);
    background: #fff;
    margin-top: 0.75rem;
}

@media (max-width: 640px) {
    .auth-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    h1 {
        font-size: 1.65rem;
    }
}
