@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic+Coding&family=Nanum+Gothic:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=VT323&family=Nanum+Gothic+Coding&display=swap');
/* css/style.css 또는 css/main.css 상단에 추가 */

@import url('https://fonts.googleapis.com/css2?family=Do+Hyeon&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic+Coding&display=swap');

body {
    background-color: #1a1a1a;
    color: #f0f0f0;
    /* (1) 가독성을 위해 기본 폰트를 Nanum Gothic으로 변경 */
    font-family: 'Nanum Gothic', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    /* (2) 모바일 키보드 팝업 시 레이아웃 깨짐 방지 */
    min-height: 100vh;
    margin: 0;
    /* (3) 상하 여백 추가 */
    padding: 20px 0;
    box-sizing: border-box;
}

#game-container {
    width: 500px;
    max-width: 90%;
    border: 3px solid #666;
    padding: 30px;
    background-color: #2b2b2b;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    text-align: center;
    box-sizing: border-box;
}

/* (4) [신규] 서브타이틀 h3 스타일 */
h3 {
    margin: 0;
    font-weight: 800;
    color: #ccc;
    font-size: 1.2em;
}

h1 {
    font-family: 'Do Hyeon', 'Nanum Gothic Coding', monospace;
    color: #ffc107;
    /* (5) 보더 색상을 어둡게 변경 */
    border-bottom: 2px solid #444;
    padding-bottom: 15px;
    /* (6) h3와 간격 좁힘 */
    margin-top: 5px;
    margin-bottom: 25px;
    /* (7) 타이틀 폰트(코딩)는 유지 */
    font-weight: 100;
    font-size: 3em;
}

h2 {
    margin-bottom: 20px;
    color: #ddd;
}

/* 폼 공통 스타일 */
#login-form, #register-form {
    display: flex;
    flex-direction: column;
}

/* 회원가입 폼은 기본적으로 숨김 */
#register-form {
    display: none;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
}

.input-group input {
    width: 100%;
    padding: 12px;
    background-color: #444;
    border: 1px solid #666;
    color: white;
    /* (8) body 폰트(Nanum Gothic) 상속 */
    font-family: inherit;
    font-size: 1em;
    border-radius: 5px;
    box-sizing: border-box;
    /* (9) 포커스 효과를 위한 transition 추가 */
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* (10) [신규] Input focus 스타일 */
.input-group input:focus {
    border-color: #ffc107;
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.3);
    outline: none;
}

.login-btn {
    background-color: #4caf50;
    color: #29481b;
    border: none;
    padding: 15px;
    /* (11) body 폰트(Nanum Gothic) 상속 */
    font-family: inherit;
    font-size: 1.1em;
    /* (12) 폰트 굵게 */
    font-weight: 700;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s, box-shadow 0.2s;
    width: 100%; 
    box-sizing: border-box; 
}

.login-btn:hover {
    background-color: #45a049;
}

/* (13) [신규] 버튼 focus 스타일 */
.login-btn:focus {
    outline: 2px solid #ffc107;
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.3);
}

/* 폼 전환 링크 스타일 */
.form-switcher {
    margin-top: 25px;
    font-size: 0.9em;
    color: #ccc;
}

.form-switcher a {
    color: #ffc107;
    text-decoration: none;
    font-weight: bold;
}

.form-switcher a:hover {
    text-decoration: underline;
}


.update-date {
    font-size: 0.95em;
    color: #ffffff; /* 밝은 회색으로 눈에 띄지 않게 */
    margin: 0px; /* '회원가입' 링크와 간격 띄우기 */
    text-align: center;
}

/* (14) [신규] 모바일 반응형 스타일 */
@media (max-width: 600px) {
    body {
        /* (15) body 패딩 제거 */
        padding: 0;
        /* (16) 화면 상단에 붙이기 */
        align-items: flex-start;
    }

    #game-container {
        width: 100%;
        max-width: 100%;
        /* (17) 모바일용 패딩 축소 */
        padding: 20px;
        /* (18) 모바일에선 꽉 찬 화면 */
        border-radius: 0;
        border: none;
        min-height: 100vh;
    }

    h1 {
        /* (19) 모바일용 폰트 크기 */
        font-size: 1.6em;
    }

    h2 {
        /* (20) 폼 제목 폰트 크기 */
        font-size: 1.3em;
    }

    .login-btn {
        /* (21) 버튼 패딩 살짝 축소 */
        padding: 14px;
    }
}
