/*
 * 날씨 테마: 맑은 낮 (Clear Day)
 * 서울시 날씨 API: SKY=1 (맑음) + 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, #87ceeb 0%, #87ceeb 60%, #90ee90 60%, #90ee90 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,100,0,0.1) 4px, rgba(0,100,0,0.1) 5px),
        repeating-linear-gradient(90deg, transparent, transparent 4px, rgba(0,100,0,0.1) 4px, rgba(0,100,0,0.1) 5px);
    z-index: 0;
}

/* 태양 (맑은 낮의 특색) */
body::after {
    content: '';
    position: absolute;
    top: 8%;
    right: 12%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #fff9e6 0%, #ffe680 40%, #ffd700 100%);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 230, 0, 0.6), 0 0 60px rgba(255, 230, 0, 0.3);
    z-index: 1;
    animation: sun-glow 4s infinite alternate;
}

@keyframes sun-glow {
    0% {
        box-shadow: 0 0 30px rgba(255, 230, 0, 0.6), 0 0 60px rgba(255, 230, 0, 0.3);
    }
    100% {
        box-shadow: 0 0 40px rgba(255, 230, 0, 0.8), 0 0 80px rgba(255, 230, 0, 0.4);
    }
}

/* 로그인 창 */
.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);
}

/* 입체적인 구름 (맑은 낮) */
.cloud {
    position: absolute;
    background: rgba(255,255,255,0.85);
    border-radius: 100px;
    animation: float infinite linear;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 2;
}

/* 구름 입체감을 위한 추가 원형 */
.cloud::before {
    content: '';
    position: absolute;
    background: rgba(255,255,255,0.85);
    border-radius: 100px;
}

.cloud::after {
    content: '';
    position: absolute;
    background: rgba(255,255,255,0.85);
    border-radius: 100px;
}

/* 맑은 낮의 구름 - 적당한 개수 */
.cloud1 {
    width: 120px;
    height: 45px;
    top: 10%;
    left: -150px;
    animation-duration: 28s;
}
.cloud1::before {
    width: 75px;
    height: 45px;
    top: -14px;
    left: 25px;
}
.cloud1::after {
    width: 60px;
    height: 40px;
    top: -9px;
    right: 18px;
}

.cloud2 {
    width: 140px;
    height: 50px;
    top: 22%;
    left: -180px;
    animation-duration: 32s;
    animation-delay: 5s;
}
.cloud2::before {
    width: 90px;
    height: 50px;
    top: -16px;
    left: 28px;
}
.cloud2::after {
    width: 70px;
    height: 45px;
    top: -11px;
    right: 22px;
}

.cloud3 {
    width: 100px;
    height: 38px;
    top: 16%;
    left: -130px;
    animation-duration: 35s;
    animation-delay: 10s;
}
.cloud3::before {
    width: 65px;
    height: 38px;
    top: -12px;
    left: 20px;
}
.cloud3::after {
    width: 50px;
    height: 34px;
    top: -8px;
    right: 15px;
}

.cloud4 {
    width: 110px;
    height: 42px;
    top: 28%;
    left: -140px;
    animation-duration: 30s;
    animation-delay: 15s;
}
.cloud4::before {
    width: 70px;
    height: 42px;
    top: -13px;
    left: 23px;
}
.cloud4::after {
    width: 55px;
    height: 37px;
    top: -9px;
    right: 17px;
}

@keyframes float {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 200px)); }
}

/* 비행기 (맑은 낮의 특색) */
.airplane {
    position: absolute;
    top: 18%;
    right: -100px;
    z-index: 3;
    animation: fly-rtl 45s infinite linear;
    animation-delay: 8s;
}

.airplane::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 8px;
    background: linear-gradient(to right, #e0e0e0 0%, #c0c0c0 50%, #e0e0e0 100%);
    border-radius: 4px;
}

.airplane::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: #d0d0d0;
    top: 3px;
    left: 20px;
    transform: rotate(90deg);
}

/* 비행기 꼬리 */
.airplane-tail {
    position: absolute;
    width: 12px;
    height: 6px;
    background: #c0c0c0;
    left: -8px;
    top: 1px;
    border-radius: 2px 0 0 2px;
}

/* UFO (맑은 낮의 특색) */
.ufo {
    position: absolute;
    top: 25%;
    right: -80px;
    z-index: 3;
    animation: fly-rtl 50s infinite linear;
    animation-delay: 25s;
}

.ufo::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 20px;
    background: radial-gradient(ellipse at center, #d0d0d0 0%, #a0a0a0 100%);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.ufo::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 12px;
    background: radial-gradient(ellipse at center, #f0f0f0 0%, #c0c0c0 100%);
    border-radius: 50%;
    top: -8px;
    left: 10px;
}

/* UFO 빛 */
.ufo-light {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffff00;
    border-radius: 50%;
    animation: ufo-blink 0.5s infinite;
}

.ufo-light1 {
    left: 10px;
    top: 8px;
}

.ufo-light2 {
    left: 23px;
    top: 8px;
    animation-delay: 0.15s;
}

.ufo-light3 {
    left: 36px;
    top: 8px;
    animation-delay: 0.3s;
}

@keyframes fly-rtl {
    0% {
        right: -100px;
        transform: scaleX(-1) translateY(0);
    }
    50% {
        transform: scaleX(-1) translateY(-10px);
    }
    100% {
        right: calc(100vw + 100px);
        transform: scaleX(-1) translateY(0);
    }
}

@keyframes ufo-blink {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 5px #ffff00;
    }
    50% {
        opacity: 0.3;
        box-shadow: 0 0 2px #ffff00;
    }
}

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