html,
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f6f8;
    color: #1f1f2e;
}

input,
button,
textarea {
    font-family: 'Poppins', sans-serif;
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.card {
    width: 420px;
    max-width: 100%;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #eef0f6;
    padding: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.brand {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.subtitle {
    font-size: 0.75rem;
    color: #6b6f85;
    margin-bottom: 20px;
}

.state-box {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.state-box.active {
    display: flex;
}

.state-box.centered {
    align-items: center;
    text-align: center;
    padding: 12px 0 4px;
}

.state-box h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1f1f2e;
}

.state-box p {
    margin: 0;
    font-size: 0.8rem;
    color: #6b6f85;
    line-height: 1.5;
}

.form-subtitle {
    margin-bottom: 6px !important;
}

.state-icon {
    font-size: 2rem;
}

.state-icon.error {
    color: #b91c1c;
}

.state-icon.success {
    color: #1f9d55;
}

.state-icon.neutral {
    color: #9f5cff;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #eef0f6;
    border-top-color: #9f5cff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: #9fa3b6;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.field input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #eef0f6;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.85rem;
    color: #1f1f2e;
    outline: none;
}

.field input:focus {
    border-color: #9f5cff;
}

.submit-btn {
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-radius: 10px;
    padding: 12px;
    margin-top: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #9f5cff, #d96bff);
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(159, 92, 255, 0.25);
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.submit-btn:hover {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 0.75rem;
    color: #6b6f85;
    text-decoration: none;
}

.back-link:hover {
    color: #9f5cff;
}

.error-box {
    background: #fde2e2;
    color: #b91c1c;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.78rem;
    margin-bottom: 14px;
    display: none;
}

.error-box.visible {
    display: block;
}
