:root {
    --bg-top: #f7efe4;
    --bg-bottom: #d8e4f1;
    --surface: #ffffff;
    --surface-muted: #f6f8fb;
    --text: #202735;
    --text-soft: #5c6475;
    --primary: #0f6b5d;
    --primary-hover: #0c594d;
    --border: #d8dde6;
    --focus: #ffb703;
    --danger: #b3261e;
    --radius: 14px;
    --shadow: 0 22px 50px rgba(33, 40, 56, 0.15);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 0 0, rgba(247, 207, 141, 0.42), transparent 42%),
                linear-gradient(150deg, var(--bg-top), var(--bg-bottom));
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 980px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: var(--surface);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.auth-aside {
    padding: 44px 38px;
    background: linear-gradient(165deg, #0f6b5d, #183153 72%);
    color: #f4f7fb;
    position: relative;
}

.auth-aside::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    right: -80px;
    bottom: -80px;
}

.brand-pill {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.auth-title {
    margin: 24px 0 14px;
    font-size: 2rem;
    line-height: 1.2;
}

.auth-copy {
    margin: 0;
    color: rgba(244, 247, 251, 0.9);
    line-height: 1.6;
}

.auth-list {
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.auth-list li {
    margin: 12px 0;
    padding-left: 22px;
    position: relative;
}

.auth-list li::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffd166;
    position: absolute;
    left: 0;
    top: 9px;
}

.auth-main {
    padding: 44px 38px;
}

.form-head h1 {
    margin: 0;
    font-size: 1.65rem;
}

.form-head p {
    margin: 10px 0 0;
    color: var(--text-soft);
}

.form-grid {
    margin-top: 30px;
    display: grid;
    gap: 15px;
}

label {
    font-weight: 700;
    font-size: 0.95rem;
}

input {
    width: 100%;
    margin-top: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 13px;
    font-size: 0.95rem;
    background: var(--surface-muted);
}

input:focus {
    outline: 3px solid color-mix(in srgb, var(--focus) 35%, white);
    border-color: var(--focus);
    background: #fff;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.inline-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.inline-check input {
    width: auto;
    margin: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.btn {
    border: 0;
    width: 100%;
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 0.98rem;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-hover);
}

.form-foot {
    margin-top: 18px;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.note {
    margin-top: 16px;
    padding: 11px 12px;
    border-radius: 10px;
    background: #fff8e8;
    color: #7c5c13;
    border: 1px solid #f6e0a7;
    font-size: 0.86rem;
}

.helper-links {
    margin-top: 22px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.88rem;
}

.error-text {
    color: var(--danger);
    font-size: 0.84rem;
}

@media (max-width: 900px) {
    .auth-card {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .auth-aside,
    .auth-main {
        padding: 28px 24px;
    }

    .auth-title {
        font-size: 1.65rem;
    }
}

.alert {
    margin-top: 16px;
    margin-bottom: 4px;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.alert-error {
    background: #fff1f2;
    color: #b3261e;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #ecfdf5;
    color: #0f766e;
    border: 1px solid #a7f3d0;
}
