/* 로그인 페이지 전용 스타일. base.css의 색상 토큰(--brand 등)을 그대로 사용한다. */

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--surface-soft);
    padding: 40px 20px;
}

/* 넓은 화면(1440px 이상)에서는 전체 블록이 화면 정중앙에 붕 떠 보이지 않도록,
   상단에서 시작해 화면의 55~60% 지점 근처에 안착하도록 위치를 내린다. */
@media (min-width: 1440px) {
    .login-page {
        justify-content: flex-start;
        padding-top: 14vh;
    }
}

.login-masthead {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
}

.login-masthead img {
    width: 68px;
    height: 68px;
    margin-bottom: 22px;
}

.login-masthead h1 {
    font-size: 23px;
    font-weight: 800;
    color: var(--brand-strong);
    letter-spacing: -0.01em;
    margin: 0;
}

.login-masthead-sub {
    margin: 6px 0 0;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--muted);
}

.login-masthead-wordmark {
    margin: 10px 0 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--muted);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    padding: 46px 42px;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fdecec;
    border: 1px solid #f3b9b9;
    color: var(--danger);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.login-alert[hidden] {
    display: none;
}

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

.login-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap input {
    width: 100%;
    box-sizing: border-box;
    background: var(--surface-soft);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text);
    transition: border-color 0.15s ease;
}

.login-input-wrap input:focus {
    outline: none;
    border-color: var(--brand);
    background: var(--surface);
}

.login-field.has-error .login-input-wrap input {
    border-color: var(--danger);
}

.login-field-hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--danger);
}

.login-input-wrap.with-toggle input {
    padding-right: 50px;
}

.login-toggle-visibility {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
}

.login-toggle-visibility svg {
    width: 20px;
    height: 20px;
}

.login-toggle-visibility .login-eye-off {
    display: none;
}

.login-toggle-visibility.is-visible .login-eye {
    display: none;
}

.login-toggle-visibility.is-visible .login-eye-off {
    display: block;
}

.login-toggle-visibility:hover,
.login-toggle-visibility:focus-visible {
    color: var(--brand);
    background: var(--brand-soft);
}

.login-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    font-size: 13px;
}

.login-row-end {
    justify-content: flex-end;
}

.login-forgot {
    color: var(--brand);
    text-decoration: none;
}

.login-forgot:hover {
    text-decoration: underline;
}

.login-submit {
    width: 100%;
    background: var(--brand-strong);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 16px 18px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.login-submit:hover {
    background: var(--brand);
}

.login-submit:disabled {
    background: var(--line-strong);
    color: var(--muted);
    cursor: not-allowed;
}

.login-locked-notice {
    margin-top: 12px;
    font-size: 12px;
    color: var(--danger);
    text-align: center;
}

.login-rules {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-rule {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
}

.login-rule .login-rule-icon {
    width: 16px;
    height: 16px;
    flex: none;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: transparent;
}

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

.login-rule.is-valid .login-rule-icon {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

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

.login-copyright {
    margin-top: 28px;
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.7;
}

.login-section[hidden] {
    display: none;
}
