/* login.css */

/* 1. 색상 변수 정의 */
:root {
    --bg-color: #0f0f0f;
    --card-bg: #1a1a1a;
    --text-color: #e0e0e0;
    --point-color: #d4af37;
    --input-bg: #252525;
    --input-text: #ffffff;
    --border-color: #333333;
    --footer-color: #666666;
}

html.light-mode {
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #212529;
    --point-color: #b8860b;
    --input-bg: #ffffff;
    --input-text: #212529;
    --border-color: #dee2e6;
    --footer-color: #999999;
}

/* 2. 공통 레이아웃 */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Pretendard', -apple-system, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    transition: background-color 0.3s, color 0.3s;
}

/* 3. 로그인 박스 구성 */
.login-container {
    width: 100%;
    max-width: 360px;
    padding: 40px 20px;
    text-align: center;
}

.logo-area {
    margin-bottom: 50px;
}

.logo-area h1 {
    color: var(--point-color);
    font-size: 2.5rem;
    letter-spacing: 5px;
    margin: 0;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* 4. 입력 폼 */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

input {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--input-text);
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    transition: border 0.3s, background-color 0.3s;
}

input:focus {
    border-color: var(--point-color);
}

/* 5. 버튼 및 링크 */
.login-btn {
    background-color: var(--point-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.1s, opacity 0.2s;
}

html:not(.light-mode) .login-btn {
    color: black;
}

.login-btn:active {
    transform: scale(0.98);
}

.footer-links {
    margin-top: 20px;
    font-size: 14px;
    color: var(--footer-color);
}

.input-hint {
    font-size: 11px;
    color: #ff4d4d;
    text-align: left;
    margin-top: 2px;
    margin-bottom: 8px;
    margin-left: 4px;
    display: none;
    width: 100%;
}

.button-group {
    margin-top: 25px;
}

/* ✅ 로그인 정보 저장 체크박스 */
.save-credentials {
    display: flex;
    justify-content: center;  /* 가운데 정렬 */
    align-items: center;
    margin-bottom: 10px;
}

.save-credentials label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.7;
    white-space: nowrap;      /* ✅ 줄바꿈 방지 */
}

.save-credentials input[type="checkbox"] {
    width: auto;              /* ✅ input { width: 100% } 덮어쓰기 방지 */
    margin: 0;
    accent-color: var(--point-color);
    cursor: pointer;
}

.credentials-warning {
    display: none;
    font-size: 11px;
    color: #e0a800;
    background: rgba(224, 168, 0, 0.08);
    border: 1px solid rgba(224, 168, 0, 0.3);
    border-radius: 6px;
    padding: 8px 10px;
    margin-top: 4px;
    line-height: 1.6;
}