:root {
    --bg-cream: #f8f3e8;
    --bg-sand: #e9dcc6;
    --ink-dark: #1e293b;
    --ink-soft: #5b6472;
    --panel-dark: #123524;
    --panel-green: #1f6f50;
    --accent-gold: #d8a84e;
    --card: rgba(255, 255, 255, 0.92);
    --line: rgba(18, 53, 36, 0.12);
    --danger: #b42318;
    --shadow: 0 24px 60px rgba(18, 53, 36, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--ink-dark);
    background:
        radial-gradient(circle at top left, rgba(216, 168, 78, 0.32), transparent 34%),
        radial-gradient(circle at bottom right, rgba(31, 111, 80, 0.24), transparent 30%),
        linear-gradient(135deg, var(--bg-cream), #f3ead9 45%, var(--bg-sand));
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
}

.hero-panel {
    padding: 64px 7vw;
    background:
        linear-gradient(160deg, rgba(18, 53, 36, 0.96), rgba(31, 111, 80, 0.9)),
        url("https://www.transparenttextures.com/patterns/cartographer.png");
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: auto -120px -120px auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(216, 168, 78, 0.18);
    filter: blur(8px);
}

.eyebrow {
    margin: 0 0 18px;
    font-size: 13px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #f7d58e;
}

.hero-panel h1 {
    margin: 0;
    max-width: 620px;
    font-size: clamp(2.3rem, 5vw, 4.3rem);
    line-height: 1.02;
}

.hero-copy {
    max-width: 560px;
    margin: 22px 0 34px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(248, 250, 252, 0.82);
}

.hero-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 780px;
}

.point-card {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.point-card p {
    margin: 12px 0 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.point-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(216, 168, 78, 0.18);
    color: #ffe7b8;
    font-weight: 700;
}

.form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.form-card {
    width: min(100%, 430px);
    padding: 34px;
    border-radius: 28px;
    background: var(--card);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 10px 16px;
    margin-bottom: 14px;
    color: var(--panel-green);
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    background: #edf7f2;
    border: 1px solid rgba(31, 111, 80, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.back-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(31, 111, 80, 0.12);
    background: #e3f2ea;
}

.brand-badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef5ef;
    color: var(--panel-green);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.form-card h2 {
    margin: 0;
    font-size: 2rem;
}

.form-copy {
    margin: 12px 0 24px;
    color: var(--ink-soft);
    line-height: 1.7;
}

.alert-error {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff1f1;
    border: 1px solid #f7c7c5;
    color: var(--danger);
    font-size: 0.95rem;
}

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

.login-form label {
    font-weight: 600;
    font-size: 0.95rem;
}

.login-form input,
.login-form select,
.login-form button {
    width: 100%;
    border-radius: 14px;
    font-size: 1rem;
}

.login-form input,
.login-form select {
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink-dark);
    outline: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.login-form input:focus,
.login-form select:focus {
    border-color: rgba(31, 111, 80, 0.55);
    box-shadow: 0 0 0 4px rgba(31, 111, 80, 0.12);
    transform: translateY(-1px);
}

.login-form button {
    margin-top: 8px;
    padding: 15px 18px;
    border: 0;
    background: linear-gradient(135deg, #184c37, #256d4f);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.login-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 28px rgba(24, 76, 55, 0.2);
    filter: brightness(1.03);
}

.landing-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 14px;
    padding: 14px 18px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    color: var(--panel-green);
    background: #eef5ef;
    border: 1px solid rgba(31, 111, 80, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.landing-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 26px rgba(31, 111, 80, 0.14);
    background: #e2efe5;
}

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

    .hero-panel {
        padding: 52px 24px 36px;
    }

    .hero-points {
        grid-template-columns: 1fr;
    }

    .form-panel {
        padding: 24px 20px 48px;
    }
}

@media (max-width: 640px) {
    .hero-panel h1 {
        font-size: 2.2rem;
    }

    .form-card {
        padding: 26px 20px;
        border-radius: 22px;
    }
}
