/*
 * 날씨 테마: 흐린 낮 (Cloudy Day)
 * 서울시 날씨 API: SKY=3~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, #c5d3e0 0%, #a8b8c8 60%, #7a9070 60%, #7a9070 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,80,0,0.1) 4px, rgba(0,80,0,0.1) 5px),
        repeating-linear-gradient(90deg, transparent, transparent 4px, rgba(0,80,0,0.1) 4px, rgba(0,80,0,0.1) 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);
}

/* 구름이 많이 낀 느낌 - 입체적인 구름 */
.cloud {
    position: absolute;
    background: rgba(160,170,180,0.92);
    border-radius: 100px;
    animation: float infinite linear;
}

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

.cloud::after {
    content: '';
    position: absolute;
    background: rgba(160,170,180,0.92);
    border-radius: 100px;
}

/* 전경 구름 (매우 크고 진한 구름) */
.cloud1 {
    width: 200px;
    height: 70px;
    top: 5%;
    left: -250px;
    animation-duration: 25s;
    background: rgba(140,150,160,0.95);
    z-index: 4;
}
.cloud1::before {
    width: 130px;
    height: 70px;
    top: -22px;
    left: 40px;
}
.cloud1::after {
    width: 100px;
    height: 65px;
    top: -15px;
    right: 30px;
}

.cloud2 {
    width: 180px;
    height: 65px;
    top: 20%;
    left: -230px;
    animation-duration: 30s;
    animation-delay: 5s;
    background: rgba(145,155,165,0.94);
    z-index: 4;
}
.cloud2::before {
    width: 115px;
    height: 65px;
    top: -20px;
    left: 38px;
}
.cloud2::after {
    width: 90px;
    height: 60px;
    top: -13px;
    right: 28px;
}

.cloud3 {
    width: 220px;
    height: 75px;
    top: 35%;
    left: -280px;
    animation-duration: 28s;
    animation-delay: 12s;
    background: rgba(138,148,158,0.96);
    z-index: 4;
}
.cloud3::before {
    width: 140px;
    height: 75px;
    top: -24px;
    left: 45px;
}
.cloud3::after {
    width: 110px;
    height: 70px;
    top: -16px;
    right: 35px;
}

/* 중경 구름 (중간 크기) */
.cloud4 {
    width: 150px;
    height: 55px;
    top: 10%;
    left: -190px;
    animation-duration: 35s;
    animation-delay: 2s;
    background: rgba(155,165,175,0.88);
    z-index: 3;
}
.cloud4::before {
    width: 95px;
    height: 55px;
    top: -17px;
    left: 32px;
}
.cloud4::after {
    width: 75px;
    height: 50px;
    top: -11px;
    right: 23px;
}

.cloud5 {
    width: 170px;
    height: 60px;
    top: 28%;
    left: -210px;
    animation-duration: 32s;
    animation-delay: 8s;
    background: rgba(150,160,170,0.89);
    z-index: 3;
}
.cloud5::before {
    width: 110px;
    height: 60px;
    top: -19px;
    left: 36px;
}
.cloud5::after {
    width: 85px;
    height: 55px;
    top: -12px;
    right: 26px;
}

.cloud6 {
    width: 135px;
    height: 50px;
    top: 15%;
    left: -170px;
    animation-duration: 38s;
    animation-delay: 15s;
    background: rgba(160,170,180,0.87);
    z-index: 3;
}
.cloud6::before {
    width: 85px;
    height: 50px;
    top: -15px;
    left: 30px;
}
.cloud6::after {
    width: 68px;
    height: 45px;
    top: -10px;
    right: 21px;
}

/* 배경 구름 (작은 크기) */
.cloud7 {
    width: 110px;
    height: 42px;
    top: 8%;
    left: -140px;
    animation-duration: 42s;
    animation-delay: 18s;
    background: rgba(170,180,190,0.82);
    z-index: 2;
}
.cloud7::before {
    width: 70px;
    height: 42px;
    top: -13px;
    left: 25px;
}
.cloud7::after {
    width: 55px;
    height: 38px;
    top: -9px;
    right: 18px;
}

.cloud8 {
    width: 125px;
    height: 48px;
    top: 25%;
    left: -160px;
    animation-duration: 40s;
    animation-delay: 22s;
    background: rgba(165,175,185,0.83);
    z-index: 2;
}
.cloud8::before {
    width: 80px;
    height: 48px;
    top: -15px;
    left: 28px;
}
.cloud8::after {
    width: 62px;
    height: 43px;
    top: -10px;
    right: 20px;
}

.cloud9 {
    width: 95px;
    height: 38px;
    top: 32%;
    left: -120px;
    animation-duration: 45s;
    animation-delay: 25s;
    background: rgba(175,185,195,0.80);
    z-index: 2;
}
.cloud9::before {
    width: 60px;
    height: 38px;
    top: -12px;
    left: 22px;
}
.cloud9::after {
    width: 48px;
    height: 34px;
    top: -8px;
    right: 16px;
}

.cloud10 {
    width: 140px;
    height: 52px;
    top: 18%;
    left: -180px;
    animation-duration: 36s;
    animation-delay: 10s;
    background: rgba(158,168,178,0.85);
    z-index: 2;
}
.cloud10::before {
    width: 90px;
    height: 52px;
    top: -16px;
    left: 30px;
}
.cloud10::after {
    width: 70px;
    height: 47px;
    top: -11px;
    right: 22px;
}

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

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