/*
 * 날씨 테마: 맑은 밤 (Clear Night)
 * 서울시 날씨 API: SKY=1 (맑음) + 18:00-06:00 (야간)
 */

/* 윈도우 3.1 레트로 스타일 */
:root {
    --win-gray: #c0c0c0;
    --win-dark-gray: #808080;
    --win-light: #ffffff;
    --win-dark: #000000;
    --win-blue: #000080;
    --win-blue-light: #0000ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'MS Sans Serif', 'Microsoft Sans Serif', sans-serif;
    background: linear-gradient(180deg, #0a1628 0%, #1a2a4a 40%, #2a3a5a 70%, #1a3a2a 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* 땅 배경 */
body::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to bottom, #1a3a2a 0%, #0a2a1a 100%);
    z-index: 0;
}

/* 로그인 창 */
.login-window {
    position: relative;
    z-index: 10;
    width: 400px;
    background-color: var(--win-gray);
    border-width: 2px;
    border-style: solid;
    border-color: var(--win-light) var(--win-dark) var(--win-dark) var(--win-light);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}

/* 타이틀 바 */
.title-bar {
    background: linear-gradient(to right, var(--win-blue) 0%, var(--win-blue-light) 100%);
    color: var(--win-light);
    padding: 3px 5px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-text {
    display: flex;
    align-items: center;
    gap: 5px;
}

.title-icon {
    width: 16px;
    height: 16px;
    background: var(--win-gray);
    border: 1px solid var(--win-light);
    display: inline-block;
}

/* 콘텐츠 영역 */
.content {
    padding: 20px;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo h1 {
    font-size: 18px;
    margin-bottom: 5px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.logo p {
    font-size: 11px;
    color: var(--win-dark-gray);
}

/* 폼 */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: bold;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 4px;
    border-width: 2px;
    border-style: solid;
    border-color: var(--win-dark) var(--win-light) var(--win-light) var(--win-dark);
    background: var(--win-light);
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 12px;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: 1px dotted var(--win-dark);
    outline-offset: -4px;
}

.btn {
    width: 100%;
    padding: 6px;
    border-width: 2px;
    border-style: solid;
    border-color: var(--win-light) var(--win-dark) var(--win-dark) var(--win-light);
    background-color: var(--win-gray);
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
}

.btn:active {
    border-color: var(--win-dark) var(--win-light) var(--win-light) var(--win-dark);
    padding: 7px 5px 5px 7px;
}

.btn:hover {
    background-color: #d0d0d0;
}

/* 에러 메시지 */
.error {
    background-color: #ff0000;
    color: var(--win-light);
    padding: 8px;
    margin-bottom: 15px;
    border: 2px solid var(--win-dark);
    font-size: 11px;
    font-weight: bold;
    text-align: center;
}

/* 하단 정보 */
.footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px groove var(--win-dark-gray);
    font-size: 10px;
    color: var(--win-dark-gray);
}

/* 별 애니메이션 */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

.star1 { top: 10%; left: 20%; animation-delay: 0s; }
.star2 { top: 15%; left: 40%; animation-delay: 0.5s; }
.star3 { top: 8%; left: 60%; animation-delay: 1s; }
.star4 { top: 20%; left: 80%; animation-delay: 1.5s; }
.star5 { top: 25%; left: 15%; animation-delay: 2s; }
.star6 { top: 12%; left: 70%; animation-delay: 2.5s; }
.star7 { top: 30%; left: 50%; animation-delay: 0.8s; }
.star8 { top: 18%; left: 90%; animation-delay: 1.8s; }

/* 큰 별 */
.star-big {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 4px rgba(255,255,255,0.8);
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* 달 */
.moon {
    position: absolute;
    top: 15%;
    right: 15%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, #ffffcc 0%, #ffff99 50%, #e6e68a 100%);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255,255,200,0.6);
    z-index: 1;
}

/* 달 크레이터 */
.moon::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 20px;
    width: 10px;
    height: 10px;
    background: rgba(200,200,150,0.3);
    border-radius: 50%;
}

.moon::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 35px;
    width: 8px;
    height: 8px;
    background: rgba(200,200,150,0.3);
    border-radius: 50%;
}

/* 이 테마에서 사용하지 않는 요소 숨기기 */
.cloud, .rain, .snow, .airplane, .ufo {
    display: none !important;
}
