*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --login-bg: #edf2f8;
    --login-surface: rgba(255, 255, 255, 0.78);
    --login-surface-strong: rgba(255, 255, 255, 0.92);
    --login-border: rgba(255, 255, 255, 0.76);
    --login-border-soft: #d7e0eb;
    --login-text: #0f172a;
    --login-text-soft: #5f6c7d;
    --login-text-muted: #7a8698;
    --login-green: #34c759;
    --login-green-deep: #237a3d;
    --login-green-soft: rgba(52, 199, 89, 0.14);
    --login-amber-soft: rgba(255, 179, 71, 0.18);
    --login-error-bg: #fff2f2;
    --login-error-text: #b42318;
    --login-error-border: #ffd4d0;
    --login-shadow: 0 22px 48px rgba(15, 23, 42, 0.10);
    --login-radius-lg: 32px;
    --login-radius-md: 20px;
    --login-radius-sm: 14px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    font-family: var(--font);
    background:
        radial-gradient(circle at top left, rgba(52, 199, 89, 0.14), transparent 28%),
        radial-gradient(circle at bottom right, rgba(52, 199, 89, 0.10), transparent 30%),
        linear-gradient(180deg, #f7f9fc 0%, var(--login-bg) 100%);
    color: var(--login-text);
    min-height: 100vh;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.login-scene {
    width: min(100%, 1140px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.88fr);
    gap: 18px;
    align-items: stretch;
}

.login-brand-panel,
.login-box {
    background: var(--login-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--login-border);
    box-shadow: var(--login-shadow);
}

.login-brand-panel {
    border-radius: var(--login-radius-lg);
    padding: 34px 34px 30px;
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: start;
    gap: 14px;
    min-height: 430px;
}

.login-brand-panel::before {
    content: "";
    position: absolute;
    inset: auto -90px -110px auto;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(52, 199, 89, 0.18), transparent 70%);
    pointer-events: none;
}

.login-brand-panel::after {
    content: "";
    position: absolute;
    inset: -120px auto auto -120px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.58), transparent 72%);
    pointer-events: none;
}

.brand-kicker,
.login-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.brand-kicker {
    color: var(--login-green-deep);
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.82);
}

.brand-wordmark {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--login-text);
}

.brand-wordmark span {
    color: var(--login-green);
}

.brand-title {
    font-size: clamp(34px, 4vw, 48px);
    line-height: 0.96;
    letter-spacing: -0.06em;
    max-width: 11ch;
}

.brand-copy {
    max-width: 34ch;
    font-size: 17px;
    line-height: 1.58;
    color: var(--login-text-soft);
}

.brand-note {
    max-width: 30ch;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.82);
    color: #425164;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 600;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-stack {
    width: min(100%, 440px);
    display: grid;
    gap: 16px;
}

.login-page-notice {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 247, 225, 0.95);
    color: #845400;
    border: 1px solid rgba(255, 191, 71, 0.34);
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 12px 26px rgba(132, 84, 0, 0.08);
}

.login-box {
    border-radius: var(--login-radius-lg);
    padding: 32px 30px 28px;
}

.login-header {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.login-eyebrow {
    color: var(--login-green-deep);
    background: var(--login-green-soft);
}

.login-header h2 {
    font-size: 34px;
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.login-header p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--login-text-soft);
    max-width: 34ch;
}

.login-error {
    background: var(--login-error-bg);
    border: 1px solid var(--login-error-border);
    color: var(--login-error-text);
    font-size: 14px;
    padding: 13px 15px;
    border-radius: 16px;
    margin-bottom: 18px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #667085;
    margin-bottom: 9px;
}

.form-group input {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    font-size: 16px;
    font-family: var(--font);
    color: var(--login-text);
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid var(--login-border-soft);
    border-radius: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input::placeholder {
    color: #98a2b3;
}

.form-group input:focus {
    border-color: rgba(52, 199, 89, 0.42);
    box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.10);
    background: #fff;
}

.btn-login {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font);
    color: #fff;
    background: linear-gradient(180deg, #2f9d50 0%, #34c759 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    margin-top: 8px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    box-shadow: 0 18px 28px rgba(52, 199, 89, 0.22);
}

.btn-login:hover {
    transform: translateY(-1px);
    filter: saturate(1.04);
}

.login-footer-note {
    margin-top: 18px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--login-text-muted);
    text-align: center;
}

@media (max-width: 980px) {
    .login-shell {
        padding: 22px 18px;
    }

    .login-scene {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .login-brand-panel {
        min-height: auto;
        padding: 28px 24px;
    }

    .brand-title {
        max-width: none;
    }

    .brand-copy,
    .brand-note {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .login-shell {
        padding: 16px;
    }

    .login-brand-panel {
        padding: 22px 20px;
        border-radius: 24px;
        gap: 14px;
    }

    .brand-title {
        font-size: 34px;
    }

    .brand-copy {
        font-size: 15px;
    }

    .brand-wordmark {
        font-size: 17px;
    }

    .brand-note {
        font-size: 13px;
        padding: 14px 15px;
        border-radius: 18px;
    }

    .login-stack {
        width: 100%;
    }

    .login-box {
        padding: 24px 20px 22px;
        border-radius: 24px;
    }

    .login-header h2 {
        font-size: 28px;
    }

    .login-page-notice,
    .login-error {
        font-size: 13px;
    }
}
