body { min-height: 100vh; }

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(18px, 5vw, 60px);
}

.auth-card {
    width: min(100%, 460px);
    background: var(--card);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 5vw, 42px);
    backdrop-filter: blur(10px);
}

.auth-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--link-text);
    text-decoration: none;
    font-weight: 800;
}

.auth-brand span {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #ffd76b, #d88900);
    box-shadow: 0 8px 18px rgba(201, 130, 0, 0.25);
}

.auth-card h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 7vw, 42px);
    line-height: 1.1;
    color: var(--heading-text);
}

.auth-intro {
    margin: 0 0 24px;
    color: var(--muted-text);
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-form label {
    display: grid;
    gap: 8px;
    color: var(--page-text);
    font-weight: 700;
}

.auth-form input,
.auth-form textarea,
.auth-form select {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid var(--field-border);
    background: var(--field-bg);
    padding: 12px 14px;
    font: inherit;
    color: var(--page-text);
}

.auth-form input:focus,
.auth-form textarea:focus,
.auth-form select:focus {
    outline: none;
    box-shadow: var(--focus-ring);
    border-color: var(--honey-dark);
}

.auth-switch,
.auth-links {
    margin-top: 20px;
    color: var(--muted-text);
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

.auth-switch a,
.auth-links a,
.alert a {
    color: var(--link-text);
    font-weight: 800;
}

.alert {
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.alert-error { background: rgba(255, 105, 82, 0.16); border: 1px solid rgba(255, 105, 82, 0.48); color: #ffb4a6; }
.alert-success { background: rgba(108, 184, 81, 0.16); border: 1px solid rgba(108, 184, 81, 0.48); color: #c9f2b9; }
.alert-info { background: rgba(245, 185, 66, 0.18); border: 1px solid rgba(245, 185, 66, 0.48); color: var(--link-text); }

html[data-theme="light"] .alert-error { color: #7d1d0d; }
html[data-theme="light"] .alert-success { color: #294d20; }

@media (max-width: 420px) {
    .auth-top,
    .auth-links {
        display: grid;
    }
}


.auth-card-wide {
    width: min(100%, 860px);
}

.form-section {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: color-mix(in srgb, var(--card-solid) 82%, transparent);
}

.form-section h2 {
    margin: 0;
    color: var(--link-text);
    font-size: clamp(18px, 3vw, 23px);
}

.form-grid {
    display: grid;
    gap: 14px;
}

.two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.span-2 {
    grid-column: 1 / -1;
}

.check-row {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: flex-start;
    gap: 12px !important;
    font-weight: 700;
    line-height: 1.5;
}

.check-row input {
    width: auto;
    min-height: auto;
    margin-top: 5px;
}

.status-list {
    display: grid;
    gap: 12px;
    margin: 18px 0;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    background: var(--card-solid);
    color: var(--page-text);
}

.stack-form {
    display: grid;
    gap: 10px;
    min-width: 260px;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 720px) {
    .two-cols {
        grid-template-columns: 1fr;
    }
}
