:root {
    --primary: #2563eb;
    --primary-dark: #1e3a8a;
    --primary-soft: #eef4ff;
    --cyan: #06b6d4;

    --bg: #f4f6fb;
    --soft: #f8fafc;
    --line: #e5eaf2;

    --text: #111827;
    --sub: #667085;
    --muted: #98a2b3;

    --green: #16a34a;
    --green-soft: #ecfdf3;
    --red: #ef4444;
    --red-soft: #fff1f2;

    --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 8px 22px rgba(15, 23, 42, 0.05);
}

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

body {
    min-height: 100vh;
    font-family: "Noto Sans KR", sans-serif;
    background: var(--bg);
    color: var(--text);
}

button,
input {
    font-family: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===== 2단 레이아웃 ===== */
.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

/* ===== 좌측 히어로 ===== */
.login-left {
    position: relative;
    display: flex;
    align-items: center;
    padding: 56px;
    color: #fff;
    overflow: hidden;
    background:
            radial-gradient(circle at 78% 12%, rgba(6, 182, 212, 0.22), transparent 36%),
            radial-gradient(circle at 12% 88%, rgba(37, 99, 235, 0.28), transparent 42%),
            linear-gradient(150deg, #0b1220 0%, #101828 48%, #1e3a8a 100%);
}

.login-left-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 48px;
}

.brand-logo {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #38bdf8, var(--primary));
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.34);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.brand-area h1 {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-content {
    margin-bottom: 48px;
}

.system-badge {
    display: inline-flex;
    margin-bottom: 24px;
    padding: 8px 13px;
    border-radius: 999px;
    color: #a5f3fc;
    background: rgba(6, 182, 212, 0.14);
    border: 1px solid rgba(6, 182, 212, 0.25);
    font-size: 12px;
    font-weight: 900;
}

.hero-content h2 {
    margin-bottom: 20px;
    font-size: 40px;
    line-height: 1.3;
    letter-spacing: -0.06em;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.8;
}

/* 좌측 하단 통계 */
.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.stat-card {
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
}

.stat-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 28px;
    letter-spacing: -0.05em;
}

.stat-card span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

/* ===== 우측 로그인 폼 ===== */
.login-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 40px;
}

.login-card {
    width: 100%;
    max-width: 420px;
}

.login-card-title {
    margin-bottom: 28px;
}

.login-card-title h2 {
    margin-bottom: 10px;
    font-size: 28px;
    letter-spacing: -0.05em;
}

.login-card-title p {
    color: var(--sub);
    font-size: 14px;
    line-height: 1.6;
}

/* 알림 박스 */
.login-error,
.login-success {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.login-error {
    color: var(--red);
    background: var(--red-soft);
    border: 1px solid #fecdd3;
}

.login-success {
    color: var(--green);
    background: var(--green-soft);
    border: 1px solid #bbf7d0;
}

/* 폼 */
.login-form {
    display: grid;
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 9px;
}

.form-group label {
    color: #344054;
    font-size: 13px;
    font-weight: 900;
}

.form-group input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: 0.18s ease;
}

.form-group input::placeholder {
    color: var(--muted);
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* 옵션 줄 */
.login-option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.check-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sub);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.check-label input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.login-option-row a {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.login-option-row a:hover {
    text-decoration: underline;
}

/* 제출 버튼 */
.login-submit-btn {
    width: 100%;
    height: 52px;
    margin-top: 4px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
    font-size: 15px;
    font-weight: 900;
    transition: 0.18s ease;
}

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

/* 도움말 */
.login-help-box {
    margin-top: 24px;
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--soft);
    border: 1px solid var(--line);
}

.login-help-box p {
    color: var(--sub);
    font-size: 12px;
    line-height: 1.7;
}

/* ===== 반응형 ===== */
@media (max-width: 980px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .login-left {
        display: none;
    }

    .login-right {
        padding: 40px 22px;
    }
}

@media (max-width: 480px) {
    .login-card-title h2 {
        font-size: 24px;
    }
}