/* ─────────────────────────────────────────────────────────────
   로그인 — 왼쪽 소개 문구 · 오른쪽 로그인 카드
   ───────────────────────────────────────────────────────────── */

.login-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.login-header {
    display: flex;
    align-items: center;
    width: min(var(--container), 100% - 80px);
    height: var(--hd-h);
    margin: 0 auto;
}

.login-brand {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

.login-main {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    align-items: center;
    gap: 100px;
    width: min(var(--container), 100% - 80px);
    margin: 0 auto;
    padding: 40px 0 80px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ───────── 소개 ───────── */
.login-intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.intro-eyebrow {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

.intro-title {
    /* 두 줄 높이를 미리 잡아 타이핑 중에 아래 내용이 움직이지 않게 */
    min-height: 2.6em;
    margin-top: 14px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.6px;
}

/* 타이핑 커서 */
.type-text.is-typing::after,
.type-text.is-done::after {
    content: "";
    display: inline-block;
    width: 3px;
    height: 0.9em;
    margin-left: 4px;
    border-radius: 2px;
    background: var(--primary);
    vertical-align: -0.08em;
}

.type-text.is-done::after {
    animation: caret-blink 1s steps(1) infinite;
}

@keyframes caret-blink {
    50% {
        opacity: 0;
    }
}

.intro-description {
    max-width: 560px;
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--sub);
}

.intro-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 560px;
    margin: 50px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.intro-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    line-height: 1.5;
}

.intro-item strong {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--primary);
}

.intro-item span {
    color: var(--sub);
}

/* 긴 안내 문장은 단어 중간에서 끊기지 않게 */
.intro-description,
.intro-item span,
.login-description {
    word-break: keep-all;
}

/* ───────── 로그인 카드 ───────── */
.login-box {
    width: 100%;
    padding: 50px 44px;
    border-radius: var(--radius-card);
    background: var(--card);
}

.login-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.3px;
}

.login-description {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--sub);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 15px;
    font-weight: 600;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 22px;
    border-radius: var(--radius-pill);
    background: var(--bg);
    box-shadow: 0 0 0 2px transparent;
    transition: box-shadow 200ms ease;
}

.input-wrap:focus-within {
    box-shadow: 0 0 0 2px var(--primary);
}

.input-wrap input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 16px;
    font-weight: 500;
}

/* 크롬 자동완성 배경(연파랑 네모) 없애기 */
.input-wrap input:-webkit-autofill,
.input-wrap input:-webkit-autofill:hover,
.input-wrap input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--ink);
    box-shadow: 0 0 0 1000px var(--bg) inset;
    transition: background-color 9999s ease-out 0s;
}

.password-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 36px;
    height: 36px;
    margin-right: -8px;
    border-radius: 50%;
    color: var(--placeholder);
    transition: color 200ms ease;
}

.password-toggle:hover,
.password-toggle[aria-pressed="true"] {
    color: var(--ink);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-message {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.login-error {
    color: var(--danger);
}

.login-success {
    color: var(--success);
}

.login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    margin-top: 10px;
    border-radius: 44.5px;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    transition: background-color 150ms ease;
}

.login-button:hover {
    background: var(--primary-hover);
}

.login-button:active {
    background: var(--primary-press);
}

.login-note {
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--sub);
    text-align: center;
}

.login-footer {
    padding: 0 20px 30px;
    font-size: 13px;
    color: var(--placeholder);
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .type-text::after {
        content: none !important;
    }
}

/* ───────── 태블릿 ───────── */
@media (max-width: 1023px) {
    .login-header {
        width: calc(100% - 64px);
    }

    .login-main {
        grid-template-columns: 1fr;
        gap: 50px;
        width: min(560px, 100% - 64px);
        padding: 30px 0 80px;
    }

    .intro-title {
        font-size: 32px;
    }

    .intro-description {
        font-size: 16px;
    }

    .intro-list {
        margin-top: 36px;
    }

    .login-title {
        font-size: 25px;
    }
}

/* ───────── 모바일 ───────── */
@media (max-width: 767px) {
    .login-header {
        width: calc(100% - 40px);
    }

    .login-brand {
        font-size: 19px;
    }

    .login-main {
        gap: 30px;
        width: calc(100% - 40px);
        padding: 24px 0 60px;
    }

    .intro-eyebrow {
        font-size: 14px;
    }

    .intro-title {
        margin-top: 10px;
        font-size: 24px;
    }

    .intro-description {
        margin-top: 12px;
        font-size: 15px;
    }

    .intro-list {
        margin-top: 24px;
    }

    .intro-item {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 14px 0;
        font-size: 14px;
    }

    .login-box {
        padding: 32px 22px;
        border-radius: 16px;
    }

    .login-title {
        font-size: 22px;
    }

    .login-description {
        font-size: 15px;
    }

    .login-form {
        margin-top: 30px;
    }

    .input-wrap,
    .login-button {
        height: 52px;
    }
}
