/*
 * 날씨 테마: 비오는 낮 (Rainy Day)
 * 서울시 날씨 API: PTY=1,4 (비/소나기) + 06:00-18: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, #5a6a7a 0%, #4a5a6a 60%, #5a7a5a 60%, #5a7a5a 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: 40%;
    background-image:
        /* 젖은 잔디 텍스처 */
        repeating-linear-gradient(0deg, transparent, transparent 4px, rgba(0,60,0,0.2) 4px, rgba(0,60,0,0.2) 5px),
        repeating-linear-gradient(90deg, transparent, transparent 4px, rgba(0,60,0,0.2) 4px, rgba(0,60,0,0.2) 5px);
    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);
}

/* 빗방울 애니메이션 */
.rain {
    position: absolute;
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, rgba(174,194,224,0.3), rgba(174,194,224,0.8));
    animation: fall infinite linear;
}

/* 빗방울 생성 (20개) - 랜덤 위치, 타이밍, 속도 */
.rain1 { left: 3%; animation-delay: 0s; animation-duration: 1.2s; }
.rain2 { left: 17%; animation-delay: 0.7s; animation-duration: 1s; }
.rain3 { left: 23%; animation-delay: 0.3s; animation-duration: 1.4s; }
.rain4 { left: 41%; animation-delay: 1.1s; animation-duration: 0.9s; }
.rain5 { left: 56%; animation-delay: 0.5s; animation-duration: 1.3s; }
.rain6 { left: 67%; animation-delay: 0.9s; animation-duration: 1.1s; }
.rain7 { left: 79%; animation-delay: 0.2s; animation-duration: 1.5s; }
.rain8 { left: 88%; animation-delay: 1.3s; animation-duration: 1s; }
.rain9 { left: 92%; animation-delay: 0.6s; animation-duration: 1.2s; }
.rain10 { left: 11%; animation-delay: 1.5s; animation-duration: 0.95s; }
.rain11 { left: 29%; animation-delay: 0.4s; animation-duration: 1.35s; }
.rain12 { left: 44%; animation-delay: 1.2s; animation-duration: 1.05s; }
.rain13 { left: 53%; animation-delay: 0.8s; animation-duration: 1.25s; }
.rain14 { left: 72%; animation-delay: 0.1s; animation-duration: 1.45s; }
.rain15 { left: 85%; animation-delay: 1.4s; animation-duration: 1.15s; }
.rain16 { left: 8%; animation-delay: 0.35s; animation-duration: 1.3s; }
.rain17 { left: 35%; animation-delay: 1s; animation-duration: 1.1s; }
.rain18 { left: 61%; animation-delay: 0.65s; animation-duration: 1.2s; }
.rain19 { left: 76%; animation-delay: 1.35s; animation-duration: 0.85s; }
.rain20 { left: 97%; animation-delay: 0.45s; animation-duration: 1.4s; }

@keyframes fall {
    0% {
        top: -50px;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0.3;
    }
}

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