body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

header,
footer {
    background-color: #1b2330;
    color: #ffffff;
    padding: 1rem;
}

header a,
footer a {
    color: #c7e0ff;
}

main {
    padding: 1rem;
}

.auth-card {
    max-width: 480px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.auth-card h2 {
    margin-top: 0;
}

.auth-intro {
    color: #4a576c;
}

.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}

.form-row label {
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.form-row input,
.form-row select,
.form-row textarea {
    padding: 0.65rem;
    border: 1px solid #c8d0dd;
    border-radius: 8px;
    font-size: 1rem;
}

.form-row.has-error input,
.form-row.has-error select,
.form-row.has-error textarea {
    border-color: #d93025;
}

.form-errors {
    background-color: #ffecef;
    color: #a30015;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.help-text {
    color: #6a768a;
    margin-top: 0.35rem;
}

.input-hint {
    color: #5a6d8c;
    font-size: 0.9rem;
    margin: 0.2rem 0 0.35rem;
}

.error {
    color: #d93025;
    margin-top: 0.35rem;
}

.required {
    color: #d93025;
    margin-left: 0.15rem;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.button-primary {
    background-color: #1b2330;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
}

.button-primary:hover {
    background-color: #273248;
}

.link-muted {
    color: #4a576c;
}

.auth-footer {
    margin-top: 2rem;
}

.muted-text {
    color: #6a768a;
    font-size: 0.95rem;
}

.signup-card {
    max-width: 640px;
}

.step-indicator {
    display: flex;
    justify-content: flex-end;
    font-size: 0.9rem;
    color: #6a768a;
    margin-bottom: 1rem;
}

.signup-step {
    display: none;
}

.signup-step.is-active {
    display: block;
}

.signup-step.is-skipped {
    display: none !important;
}

.feedback {
    color: #d93025;
    margin-top: 0.35rem;
}

.option-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin-bottom: 1.5rem;
}

.option-card {
    border: 1px solid #c8d0dd;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.option-card input {
    margin-right: 0.5rem;
}

.option-card label {
    cursor: pointer;
    font-weight: 600;
}

.option-input:checked + label,
.option-card input:checked ~ label {
    color: #1b2330;
}

.option-input:checked,
.option-card:has(.option-input:checked) {
    border-color: #1b2330;
    box-shadow: 0 4px 12px rgba(27, 35, 48, 0.1);
}

.button-secondary {
    background-color: transparent;
    border: 1px solid #1b2330;
    color: #1b2330;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
}

.button-tertiary {
    background-color: transparent;
    border: 1px solid #c8d0dd;
    color: #273248;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
}

.button-secondary:hover,
.button-tertiary:hover {
    background-color: #f3f6fb;
}

.pending-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    color: #4a576c;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #c8d0dd;
    border-top-color: #1b2330;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.profile-reminder {
    padding-left: 1.25rem;
    color: #4a576c;
}

.form-actions.stack {
    flex-direction: column;
    align-items: stretch;
}

.form-actions.stack button + button {
    margin-top: 0.5rem;
}

.profile-card {
    max-width: 920px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f3f6fb;
    box-shadow: 0 6px 12px rgba(27, 35, 48, 0.1);
    background-color: #eaeef6;
}

.profile-avatar.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #5a6d8c;
    font-weight: 600;
}

.profile-heading h2 {
    margin: 0;
}
