:root {
    --auth-bg: #f2f6f4;
    --auth-surface: #fbfdfc;
    --auth-surface-2: #eef5f2;
    --auth-text: #15221f;
    --auth-muted: #4b6460;
    --auth-line: #cfddd8;
    --auth-brand: #167f6f;
    --auth-brand-strong: #0f6658;
    --auth-accent: #c77d3f;
    --auth-danger: #c0392b;
    --auth-radius: 18px;
    --auth-shadow: 0 18px 44px rgba(21, 34, 31, 0.08);
}

.auth-shell {
    width: min(1100px, 94vw);
    margin: 2.5rem auto;
    padding: 1rem;
    border: 1px solid var(--auth-line);
    border-radius: calc(var(--auth-radius) + 6px);
    background: radial-gradient(700px 260px at 0% 0%, #d9efe8 0%, transparent 70%),
        radial-gradient(720px 280px at 100% 100%, #f3e3d4 0%, transparent 70%),
        var(--auth-bg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    box-shadow: var(--auth-shadow);
}

.auth-side {
    border: 1px solid var(--auth-line);
    border-radius: var(--auth-radius);
    background: linear-gradient(165deg, #edf7f3 0%, #f7faf8 100%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-kicker {
    margin: 0 0 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    font-size: 0.74rem;
    color: #2f7166;
}

.auth-side h1 {
    margin: 0;
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    line-height: 1.08;
    font-family: "Newsreader", Georgia, serif;
    color: var(--auth-text);
}

.auth-side-copy {
    margin: 0.9rem 0 0;
    color: var(--auth-muted);
    max-width: 36ch;
}

.auth-points {
    margin: 1.1rem 0 0;
    padding-left: 1.1rem;
    color: #37514c;
}

.auth-points li {
    margin: 0 0 0.4rem;
}

.auth-container {
    min-width: 0;
}

.auth-card {
    border: 1px solid var(--auth-line);
    border-radius: var(--auth-radius);
    background: linear-gradient(180deg, var(--auth-surface) 0%, var(--auth-surface-2) 100%);
    padding: 2rem;
    box-shadow: 0 12px 28px rgba(20, 31, 29, 0.06);
}

.auth-card h2 {
    margin: 0 0 1.3rem;
    color: #16324f;
    font-size: 1.8rem;
    font-weight: 700;
}

.auth-form .form-group {
    margin-bottom: 1rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.4rem;
    color: #1d3935;
    font-size: 0.95rem;
    font-weight: 600;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form select,
.auth-form textarea {
    width: 100%;
    border: 1px solid #c4d8d1;
    border-radius: 12px;
    background: #f7fbf9;
    color: #1b312d;
    padding: 0.78rem 0.85rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    outline: none;
    border-color: var(--auth-brand);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(22, 127, 111, 0.16);
}

.auth-form .helptext,
.auth-form .form-text,
.auth-form small {
    color: #5a746f;
    font-size: 0.86rem;
    margin-top: 0.45rem;
}

.auth-form .errorlist,
.auth-form .invalid-feedback,
.auth-form .error {
    list-style: none;
    margin: 0.45rem 0 0;
    padding: 0.62rem 0.72rem;
    border: 1px solid #e8b3aa;
    border-radius: 10px;
    background: #fff4f2;
    color: var(--auth-danger);
    font-size: 0.9rem;
}

.auth-form .is-invalid {
    border-color: #de8f84;
    background: #fff8f7;
}

.auth-form button[type="submit"] {
    width: 100%;
    margin-top: 0.95rem;
    padding: 0.88rem 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--auth-brand), var(--auth-brand-strong));
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 22px rgba(15, 102, 88, 0.25);
}

.auth-form button[type="submit"]:hover {
    transform: translateY(-1px);
}

.back-link {
    margin-top: 1rem;
    text-align: center;
}

.back-link a {
    color: #425f59;
    text-decoration: none;
    font-size: 0.93rem;
}

.back-link a:hover {
    color: #21423d;
    text-decoration: underline;
}

.auth-links {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #d7e4df;
}

.auth-links p {
    margin: 0 0 0.55rem;
    color: #38534e;
    text-align: center;
    font-size: 0.94rem;
}

.auth-links p:last-child {
    margin-bottom: 0;
}

.auth-links a {
    color: var(--auth-brand);
    text-decoration: none;
    font-weight: 700;
}

.auth-links a:hover {
    color: var(--auth-brand-strong);
    text-decoration: underline;
}

@media (max-width: 980px) {
    .auth-shell {
        grid-template-columns: 1fr;
        margin: 1.5rem auto;
    }

    .auth-side {
        padding: 1.5rem;
    }

    .auth-card {
        padding: 1.45rem;
    }
}

@media (max-width: 560px) {
    .auth-shell {
        width: 96vw;
        padding: 0.7rem;
    }

    .auth-side {
        padding: 1.2rem;
    }

    .auth-card h2 {
        font-size: 1.5rem;
    }
}
