/* ============================================================
 *  login.css — 로그인 페이지 전용 스타일
 * ============================================================ */

body.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
    background-color: #eef1f8;
    background-image:
        radial-gradient(900px 600px at 15% -10%, rgba(28,42,140,0.10), transparent 60%),
        radial-gradient(800px 600px at 110% 110%, rgba(226,25,44,0.06), transparent 55%),
        linear-gradient(180deg, #eef1f8 0%, #e6ebf5 100%);
    position: relative;
    overflow-x: hidden;
}

body.login-shell::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(28,42,140,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28,42,140,0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: -1px -1px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 85%);
            mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 85%);
    pointer-events: none;
    z-index: 0;
}

.stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow:
        0 1px 2px rgba(15,23,42,.04),
        0 24px 60px rgba(15,23,42,.10),
        0 8px 24px rgba(15,23,42,.06);
    padding: 48px 44px 40px;
    border: 1px solid rgba(15,23,42,0.04);
}

.logo-row {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}
.logo-row img { height: 40px; width: auto; }

h2.title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--ink-900);
}
.subtitle {
    margin: 0 0 32px;
    font-size: 14px;
    color: var(--ink-500);
    text-align: center;
}

.alert-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: var(--radius-md);
    font-size: 13px;
}
.alert-error i { font-size: 16px; }

.field { margin-bottom: 14px; }
.field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-700);
    margin-bottom: 6px;
}
.input-wrap { position: relative; }
.input-wrap .leading {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-400);
    pointer-events: none;
    font-size: 16px;
}
.input-wrap .trailing {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    border: 0;
    background: transparent;
    color: var(--ink-400);
    cursor: pointer;
    border-radius: 8px;
    display: grid; place-items: center;
}
.input-wrap .trailing:hover { color: var(--ink-700); background: var(--ink-100); }

.field input[type="text"],
.field input[type="password"] {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 44px;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-md);
    background: var(--white);
    font-size: 15px;
    font-family: inherit;
    color: var(--ink-900);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: var(--ink-400); }
.field input:focus {
    outline: none;
    border-color: var(--navy-700);
    box-shadow: var(--shadow-focus);
}

.row-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0 22px;
}
.row-options .opts {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    align-items: center;
}
.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    color: var(--ink-700);
    position: relative;
}
.checkbox input { position: absolute; opacity: 0; pointer-events: none; }
.checkbox .box {
    width: 18px; height: 18px;
    border: 1.5px solid var(--ink-300);
    border-radius: 5px;
    display: grid; place-items: center;
    background: var(--white);
    transition: all .15s ease;
    color: var(--white);
    font-size: 12px;
    line-height: 1;
}
.checkbox .box i { opacity: 0; }
.checkbox input:checked + .box {
    background: var(--navy-700);
    border-color: var(--navy-700);
}
.checkbox input:checked + .box i { opacity: 1; }

.text-link {
    font-size: 13px;
    color: var(--ink-500);
    text-decoration: none;
}
.text-link:hover { color: var(--navy-700); text-decoration: underline; }
.text-divider { color: var(--ink-300); margin: 0 6px; }

.btn-primary {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--navy-700);
    color: var(--white);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .15s ease, transform .05s ease;
}
.btn-primary:hover { background: var(--navy-800); }
.btn-primary:active { transform: translateY(1px); background: var(--navy-900); }

.signup-cta {
    margin-top: 28px;
    text-align: center;
    font-size: 13px;
    color: var(--ink-500);
}
.signup-cta a {
    color: var(--navy-700);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}
.signup-cta a:hover { text-decoration: underline; }

.copyright {
    position: relative;
    z-index: 1;
    margin-top: 24px;
    font-size: 12px;
    color: var(--ink-400);
    text-align: center;
}

@media (max-width: 480px) {
    .card { padding: 36px 24px 28px; border-radius: 12px; }
    .logo-row img { height: 34px; }
}
