body {
    --bg: #eef5f3;
    --panel: #ffffff;
    --ink: #13262f;
    --muted: #5f727b;
    --line: #dbe7e2;
    --accent: #0f766e;
    --navy: #12343b;
    margin: 0;
    font-family: "Instrument Sans", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 12% 16%, rgba(15, 118, 110, 0.18) 0, transparent 24%),
        radial-gradient(circle at 84% 18%, rgba(37, 99, 235, 0.12) 0, transparent 18%),
        linear-gradient(180deg, #f9fcfb 0%, var(--bg) 100%);
    color: var(--ink);
    min-height: 100vh;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body::before {
    background-image:
        radial-gradient(circle, rgba(15, 118, 110, 0.16) 0 2px, transparent 3px),
        radial-gradient(circle, rgba(37, 99, 235, 0.12) 0 1.5px, transparent 2.5px),
        radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 1px, transparent 2px);
    background-size: 180px 180px, 240px 240px, 120px 120px;
    background-position: 0 0, 40px 80px, 20px 20px;
    opacity: 0.55;
    animation: floatParticles 28s linear infinite;
}

body::after {
    background:
        radial-gradient(circle at 18% 32%, rgba(255, 255, 255, 0.45) 0 5px, transparent 6px),
        radial-gradient(circle at 78% 24%, rgba(15, 118, 110, 0.16) 0 7px, transparent 8px),
        radial-gradient(circle at 68% 78%, rgba(37, 99, 235, 0.12) 0 6px, transparent 7px),
        radial-gradient(circle at 32% 74%, rgba(255, 255, 255, 0.4) 0 4px, transparent 5px);
    filter: blur(0.4px);
    opacity: 0.65;
    animation: driftParticles 18s ease-in-out infinite alternate;
}

.auth-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px;
}

.auth-layout {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.auth-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 30px rgba(19, 38, 47, 0.08);
}

.auth-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--accent) 0%, #1d4f58 100%);
    display: grid;
    place-items: center;
    color: white;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.auth-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.auth-brand-text strong {
    font-size: 1rem;
}

.auth-brand-text span {
    color: var(--muted);
    font-size: 0.88rem;
}

.login-shell {
    width: min(100%, 940px);
    display: grid;
    grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 0.95fr);
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(19, 38, 47, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px);
}

.login-hero {
    position: relative;
    padding: 42px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.2) 0, transparent 28%),
        linear-gradient(160deg, var(--navy) 0%, #1b4c54 100%);
    color: white;
}

.login-hero::after {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -46px;
    width: 180px;
    height: 180px;
    border-radius: 44px;
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(18deg);
}

.login-hero h1 {
    margin: 36px 0 12px;
    font-size: clamp(2rem, 3vw, 2.85rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.login-hero p {
    max-width: 26ch;
    margin: 0;
    color: rgba(235, 245, 243, 0.88);
    line-height: 1.6;
    font-size: 1rem;
}

.login-card {
    background: var(--panel);
    padding: 38px 34px 34px;
}

.login-eyebrow {
    margin: 0 0 10px;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
}

.login-card h2 {
    margin: 0 0 8px;
    font-size: 1.9rem;
    letter-spacing: -0.04em;
}

.login-subtle {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.6;
}

.login-field {
    margin-bottom: 18px;
}

.login-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.login-input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 15px 16px;
    font: inherit;
    background: #fbfdfc;
    color: var(--ink);
    transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.login-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
    background: white;
}

.login-error {
    margin-bottom: 18px;
    border-radius: 16px;
    padding: 13px 14px;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.login-submit {
    border: 0;
    border-radius: 12px;
    padding: 14px 16px;
    width: 100%;
    background: linear-gradient(180deg, #13897f 0%, var(--accent) 100%);
    color: white;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(15, 118, 110, 0.22);
    transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.login-submit:hover {
    filter: brightness(1.03);
    box-shadow: 0 14px 26px rgba(15, 118, 110, 0.26);
}

.login-submit:active {
    transform: translateY(1px);
}

.login-footer-note {
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.92rem;
    text-align: center;
}

@keyframes floatParticles {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-40px, 28px, 0);
    }
}

@keyframes driftParticles {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(18px, -14px, 0);
    }
}

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

    .login-hero,
    .login-card {
        padding: 28px 24px;
    }

    .login-hero h1 {
        margin-top: 22px;
    }
}
