﻿:root {
    --night: #0b2319;
    --forest: #165a3a;
    --leaf: #7ccf7a;
    --wheat: #f3d6a0;
    --cream: #f6f4ed;
    --ink-900: #0d1b16;
    --ink-600: #3f4c45;
    --line: rgba(13, 27, 22, 0.18);
    --card: #ffffff;
    --shadow: 0 30px 80px rgba(6, 20, 14, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Sora", "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--ink-900);
    background:
        radial-gradient(circle at 12% 18%, rgba(122, 201, 134, 0.25), transparent 55%),
        radial-gradient(circle at 90% 10%, rgba(245, 207, 120, 0.25), transparent 45%),
        linear-gradient(160deg, #0b2218 0%, #143326 100%);
    display: grid;
    place-items: center;
    padding: 36px 20px 28px;
}

.auth-shell {
    width: min(100%, 1000px);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: var(--card);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: floatIn 0.7s ease-out;
}

.auth-panel {
    padding: 46px 44px;
    background: linear-gradient(145deg, #143b2b 0%, #0c291d 100%);
    color: #eaf4ec;
    position: relative;
    overflow: hidden;
}

.auth-panel::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 207, 122, 0.75), rgba(124, 207, 122, 0));
    top: -100px;
    right: -120px;
    opacity: 0.7;
    filter: blur(2px);
    animation: drift 9s ease-in-out infinite;
}

.auth-panel::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(243, 214, 160, 0.55), rgba(243, 214, 160, 0));
    bottom: -120px;
    left: -80px;
    transform: rotate(-8deg);
    animation: drift 10s ease-in-out infinite reverse;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.logo-mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(140deg, var(--leaf), var(--wheat));
    color: #0e1a14;
    font-weight: 800;
    letter-spacing: 1px;
    display: grid;
    place-items: center;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.brand-subtitle {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(234, 244, 236, 0.7);
    margin-top: 4px;
}

.brand-copy {
    position: relative;
    z-index: 1;
}

.brand-copy h1 {
    margin: 0 0 12px;
    font-size: 2rem;
}

.brand-copy p {
    margin: 0;
    line-height: 1.6;
    color: rgba(234, 244, 236, 0.75);
}

.brand-list {
    list-style: none;
    padding: 0;
    margin: 26px 0 0;
    display: grid;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.brand-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.95rem;
    color: rgba(234, 244, 236, 0.85);
}

.brand-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--wheat);
    margin-top: 6px;
    flex: 0 0 auto;
}

.brand-badge {
    margin-top: 26px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.auth-card {
    padding: 42px 38px 34px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--card);
}

.card-header h2 {
    margin: 6px 0 8px;
    font-size: 1.7rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.7rem;
    color: var(--ink-600);
    margin: 0;
}

.muted {
    margin: 0;
    color: var(--ink-600);
    line-height: 1.5;
}

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

.field {
    display: grid;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--ink-600);
}

.field span {
    font-weight: 600;
    color: var(--ink-900);
}

.input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #f8fbf7;
    font-size: 0.95rem;
    transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.input:focus {
    outline: none;
    border-color: var(--leaf);
    box-shadow: 0 0 0 3px rgba(124, 207, 122, 0.2);
    background: #ffffff;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--ink-600);
}

.checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--forest);
}

.btn-primary {
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--leaf), #4ea45e);
    color: #0e2016;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(72, 140, 82, 0.35);
}

.alert {
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.9rem;
}

.alert strong {
    display: block;
    margin-bottom: 4px;
}

.alert ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

.alert-error {
    background: #ffe9e9;
    color: #7e1b1b;
}

.alert-success {
    background: #e7f6ee;
    color: #1b6b3c;
}

.alert-close {
    margin-left: auto;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 1.1rem;
    cursor: pointer;
}

.helper {
    background: var(--cream);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.85rem;
    color: var(--ink-600);
}

.helper strong {
    color: var(--ink-900);
}

.card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--ink-600);
}

.card-footer a {
    color: var(--forest);
    font-weight: 700;
    text-decoration: none;
}

.card-footer a:hover {
    text-decoration: underline;
}

.page-footer {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    text-align: center;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drift {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(12px) scale(1.04);
    }
}

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

    .auth-panel {
        padding: 36px;
    }

    .auth-card {
        padding: 34px 30px;
    }
}

@media (max-width: 600px) {
    .brand-copy h1 {
        font-size: 1.6rem;
    }

    .auth-card {
        padding: 28px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
