/* 판타지 스타일 로그인 페이지 CSS */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    height: 100vh;
    position: relative;
}

/* 배경 컨테이너 - 판타지 이미지 배경 */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('/images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* 그라데이션 오버레이 - 이미지 위에 부드러운 오버레이 */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(135, 206, 235, 0.1) 0%,
        rgba(168, 230, 207, 0.15) 50%,
        rgba(135, 206, 235, 0.1) 100%
    );
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

/* 떠다니는 원형 요소들 - 이미지 배경과 함께 미묘하게 */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    animation: float 25s infinite ease-in-out;
    opacity: 0.4;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    top: 65%;
    right: 15%;
    animation-delay: 8s;
}

.circle-3 {
    width: 100px;
    height: 100px;
    bottom: 25%;
    left: 50%;
    animation-delay: 15s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.2;
    }
    33% {
        transform: translate(20px, -20px) scale(1.05);
        opacity: 0.4;
    }
    66% {
        transform: translate(-15px, 15px) scale(0.95);
        opacity: 0.3;
    }
}

/* 로그인 컨테이너 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 로그인 박스 */
.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 50px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 
        0 20px 60px rgba(135, 206, 235, 0.3),
        0 0 40px rgba(168, 230, 207, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(135, 206, 235, 0.1), 
        transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 헤더 */
.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #87CEEB, #A8E6CF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(135, 206, 235, 0.3);
}

.login-subtitle {
    color: #6B8E9F;
    font-size: 14px;
    font-weight: 400;
}

/* 알림 메시지 */
.alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    animation: fadeIn 0.3s ease-out;
}

.alert-error {
    background: rgba(255, 107, 107, 0.1);
    color: #FF6B6B;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.alert-success {
    background: rgba(168, 230, 207, 0.2);
    color: #4ECDC4;
    border: 1px solid rgba(168, 230, 207, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 폼 */
.login-form {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 24px;
}

.remember-me-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4A5568;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    margin-top: -10px;
    margin-bottom: 10px;
}

.remember-me-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #87CEEB;
    flex-shrink: 0;
}

.remember-me-label span {
    cursor: pointer;
    line-height: 1.5;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #4A5568;
    font-size: 14px;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 45px;
    border: 2px solid rgba(135, 206, 235, 0.3);
    border-radius: 15px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.8);
    color: #2D3748;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #87CEEB;
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        0 0 0 4px rgba(135, 206, 235, 0.1),
        0 4px 12px rgba(135, 206, 235, 0.2);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: #A0AEC0;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    pointer-events: none;
}

/* 로그인 버튼 */
.login-button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #87CEEB 0%, #A8E6CF 100%);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 
        0 4px 15px rgba(135, 206, 235, 0.4),
        0 2px 8px rgba(168, 230, 207, 0.3);
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(135, 206, 235, 0.5),
        0 4px 12px rgba(168, 230, 207, 0.4);
}

.login-button:active {
    transform: translateY(0);
}

.button-text {
    position: relative;
    z-index: 2;
}

.button-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.login-button:hover .button-glow {
    width: 300px;
    height: 300px;
}

/* 푸터 */
.login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(135, 206, 235, 0.2);
}

.register-link {
    color: #87CEEB;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.register-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #87CEEB, #A8E6CF);
    transition: width 0.3s ease;
}

.register-link:hover {
    color: #A8E6CF;
}

.register-link:hover::after {
    width: 100%;
}

/* 모바일 반응형 */
@media (max-width: 480px) {
    .login-box {
        padding: 35px 25px;
        border-radius: 25px;
        max-width: 100%;
    }

    .login-title {
        font-size: 26px;
    }

    .login-subtitle {
        font-size: 13px;
    }

    .form-input {
        padding: 12px 14px 12px 40px;
        font-size: 14px;
    }

    .login-button {
        padding: 14px;
        font-size: 15px;
    }

    .floating-circle {
        display: none; /* 모바일에서 성능 최적화 */
    }
    
    .background-container {
        background-attachment: scroll; /* 모바일에서 fixed는 성능 문제 */
    }
}

@media (max-width: 360px) {
    .login-box {
        padding: 30px 20px;
    }

    .login-title {
        font-size: 24px;
    }
}

