@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
    --bg: #eef4ef;
    --panel: rgba(255, 255, 255, 0.92);
    --panel-strong: #ffffff;
    --text: #122117;
    --muted: #647466;
    --accent: #2f9e44;
    --accent-dark: #1f6d2f;
    --border: rgba(23, 64, 33, 0.12);
    --shadow: 0 22px 60px rgba(22, 49, 29, 0.16);
}

* {
    box-sizing: border-box;
}

body.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(47, 158, 68, 0.20), transparent 34%),
        radial-gradient(circle at bottom right, rgba(99, 224, 102, 0.18), transparent 26%),
        linear-gradient(135deg, #edf5ee 0%, #f6faf7 48%, #eef3ef 100%);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 1.1fr) minmax(360px, 540px);
}

.auth-brand-panel,
.auth-card-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.auth-brand-panel {
    background:
        linear-gradient(140deg, rgba(25, 52, 31, 0.94), rgba(30, 82, 43, 0.84)),
        linear-gradient(180deg, #16361e, #1b4c27);
    color: #effbf1;
    position: relative;
    overflow: hidden;
}

.auth-brand-panel::before,
.auth-brand-panel::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(99, 224, 102, 0.12);
    filter: blur(12px);
}

.auth-brand-panel::before {
    width: 360px;
    height: 360px;
    right: -80px;
    top: -120px;
}

.auth-brand-panel::after {
    width: 260px;
    height: 260px;
    left: -90px;
    bottom: -80px;
}

.brand-copy {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.brand-copy h1 {
    margin: 0 0 12px;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 0.95;
}

.brand-copy p {
    margin: 0;
    color: rgba(239, 251, 241, 0.84);
    font-size: 1.05rem;
    line-height: 1.7;
}

.brand-mark {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 26px;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: linear-gradient(180deg, #6dff86 0%, #2f9e44 100%);
    color: #08130b;
    box-shadow: 0 20px 48px rgba(109, 255, 134, 0.28);
    margin-bottom: 24px;
}

.eyebrow {
    margin: 0 0 14px;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(239, 251, 241, 0.72);
}

.auth-card {
    width: 100%;
    max-width: 480px;
    padding: 36px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.auth-header h2 {
    margin: 0 0 10px;
    font-size: 2rem;
}

.auth-header p {
    margin: 0 0 28px;
    color: var(--muted);
    line-height: 1.65;
}

.stack-md,
.stack-lg {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.field span,
.checkbox-field span {
    font-size: 0.92rem;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid rgba(31, 71, 42, 0.12);
    border-radius: 16px;
    background: var(--panel-strong);
    color: var(--text);
    padding: 14px 16px;
    font: inherit;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(47, 158, 68, 0.42);
    box-shadow: 0 0 0 4px rgba(47, 158, 68, 0.12);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 16px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.btn-primary {
    background: linear-gradient(180deg, #43c55d 0%, #24913b 100%);
    color: #f7fff9;
    box-shadow: 0 16px 30px rgba(36, 145, 59, 0.28);
}

.btn-secondary {
    background: #f3f8f3;
    color: #18301e;
    border-color: rgba(23, 64, 33, 0.12);
}

.btn-block {
    width: 100%;
}

.demo-box {
    margin-top: 26px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(47, 158, 68, 0.08);
    border: 1px solid rgba(47, 158, 68, 0.12);
}

.demo-box h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.plain-list {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.65;
}

.flash {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-weight: 600;
}

.flash-success {
    background: rgba(47, 158, 68, 0.12);
    border-color: rgba(47, 158, 68, 0.18);
    color: #1f6d2f;
}

.flash-error {
    background: rgba(214, 69, 69, 0.12);
    border-color: rgba(214, 69, 69, 0.18);
    color: #962b2b;
}

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

    .auth-brand-panel {
        min-height: 260px;
    }
}

@media (max-width: 640px) {
    .auth-brand-panel,
    .auth-card-panel {
        padding: 24px;
    }

    .auth-card {
        padding: 24px;
        border-radius: 22px;
    }
}
