/**
 * 로그인 페이지 전용 (assets/css/login.css)
 * 배경 네이비 + 중앙 흰 카드 UI
 */

#mainContentArea:has(.login-page) {
    min-height: 100vh;
}

#mainContentArea:has(.login-page) #contentArea {
    padding: 0;
    flex: 1 1 auto;
    display: flex;
    min-height: 100vh;
}

.login-page {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    overflow: auto;
    background-color: #12172b;
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 40px 36px 32px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.login-logo {
    font-family: "Orbitron", serif;
    font-size: 32px;
    font-weight: 600;
    color: #1a202c;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    text-align: center;
    margin: 0 0 8px;
    line-height: 1.3;
}

.login-subtitle {
    font-size: 14px;
    line-height: 1.5;
    color: #718096;
    text-align: center;
    margin: 0 0 28px;
}

.login-form {
    margin: 0;
}

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

.login-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 8px;
}

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 14px;
    font-size: 18px;
    color: #a0aec0;
    pointer-events: none;
    z-index: 1;
}

.login-input {
    font-family: "Plus Jakarta Sans", sans-serif;
    width: 100%;
    height: 48px;
    padding: 0 14px 0 44px;
    font-size: 14px;
    color: #1a202c;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #ffffff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-input::placeholder {
    color: #cbd5e0;
}

.login-input:focus {
    border-color: #4a5568;
    box-shadow: 0 0 0 3px rgba(26, 32, 44, 0.08);
}

.login-input-wrap--password .login-input {
    padding-right: 48px;
}

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

.login-field-toggle:hover,
.login-field-toggle:focus-visible {
    color: #4a5568;
    background-color: #f7fafc;
}

.login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    font-size: 12px;
    color: #4a5568;
    user-select: none;
}

.login-remember input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #1a202c;
    cursor: pointer;
}

.login-link {
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
    text-decoration: none;
}

.login-link:hover {
    color: #1a202c;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 8px;
    background-color: #1a202c;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.05s ease;
}

.login-btn:hover {
    background-color: #2d3748;
}

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

.login-btn-secondary {
    margin-top: 10px;
    background-color: #253046;
}

.login-btn-secondary:hover {
    background-color: #33415c;
}

.login-footer-text {
    text-align: center;
    font-size: 14px;
    color: #718096;
    margin: 20px 0 0;
}

.login-footer-text a {
    font-weight: 700;
    color: #1a202c;
    text-decoration: none;
}

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

.login-legal {
    font-size: 11px;
    line-height: 1.5;
    color: #a0aec0;
    text-align: center;
    margin: 24px 0 0;
}

.login-error {
    font-size: 12px;
    color: #c53030;
    margin-bottom: 16px;
    padding: 10px 12px;
    background-color: #fff5f5;
    border-radius: 8px;
    border: 1px solid #feb2b2;
}

.login-success {
    font-size: 12px;
    color: #166534;
    margin-bottom: 16px;
    padding: 10px 12px;
    background-color: #f0fdf4;
    border-radius: 8px;
    border: 1px solid #86efac;
}
