:root {
    --ink: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --card-bg: rgba(255, 255, 255, 0.9);
    --accent: #16a34a;
    --accent-hover: #15803d;
    --accent-soft: rgba(22, 163, 74, 0.12);
    --error: #dc2626;
    --success: #15803d;
    --radius: 18px;
    --shadow: 0 20px 45px -20px rgba(15, 23, 42, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 2.5rem 1rem;
    color: var(--ink);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    line-height: 1.55;
    background:
        radial-gradient(1100px 520px at 12% -10%, #dcfce7 0%, transparent 55%),
        radial-gradient(900px 500px at 100% 0%, #e0f2fe 0%, transparent 50%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
}

.card {
    width: 100%;
    max-width: 460px;
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    padding: 2.4rem 2.4rem 2.6rem;
    box-shadow: var(--shadow);
    text-align: center;
    animation: rise 0.4s ease both;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.badge {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    display: grid;
    place-items: center;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 16px;
}

h1 {
    margin: 0 0 0.4rem;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.lead {
    margin: 0 0 1.75rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.form {
    text-align: left;
}

label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

input {
    width: 100%;
    padding: 0.8rem 0.95rem;
    font-size: 1.05rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder {
    color: #aab4c2;
}

input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1rem;
}

.btn {
    width: 100%;
    padding: 0.8rem 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-size: 0.98rem;
    font-family: inherit;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

.btn:active:not(:disabled) {
    transform: translateY(1px);
}

.btn:disabled {
    cursor: progress;
    opacity: 0.6;
}

.btn-primary {
    color: #fff;
    background: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: 0 10px 20px -12px rgba(22, 163, 74, 0.9);
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-secondary {
    color: var(--accent-hover);
    background: #fff;
    border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn.is-loading .btn-label {
    opacity: 0.7;
}

.btn.is-loading .spinner {
    display: inline-block;
}

.status {
    margin: 1.35rem 0 0;
    min-height: 1.25rem;
    font-size: 0.92rem;
    font-weight: 500;
}

.status.loading {
    color: var(--muted);
}

.status.error {
    color: var(--error);
}

.status.success {
    color: var(--success);
}

.footer {
    font-size: 0.78rem;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

@media (max-width: 480px) {
    .card {
        padding: 1.9rem 1.5rem 2.1rem;
    }
}
