/* 로그인 페이지 전용 스타일 */

/* 컨테이너 배경 설정 */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background-image: url('/static/images/loginimage.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 20px;
}

/* 로그인 섹션 */
.login-section {
    width: 100%;
    max-width: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 로그인 박스 */
.login-box {
    width: 100%;
    background-color: white;
    padding: 48px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* 제목 */
.login-box h1 {
    text-align: center;
    margin-bottom: 32px;
    font-size: 28px;
    font-weight: 500;
    color: #333;
}

/* 입력 그룹 */
.input-group {
    margin-bottom: 16px;
}

/* 입력 필드 */
.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.login-box input[type="text"]:hover,
.login-box input[type="password"]:hover {
    border-color: #999;
}

.login-box input[type="text"]:focus,
.login-box input[type="password"]:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 0 0 3px rgba(102, 102, 102, 0.1);
}

/* 로그인 버튼 */
.login-btn {
    width: 100%;
    padding: 14px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background-color: #555;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* 링크 */
.links {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    font-size: 14px;
}

.links a {
    color: #666;
    text-decoration: none;
}

.links a:hover {
    color: #333;
    text-decoration: underline;
}

/* 구분선 */
.divider {
    text-align: center;
    margin: 24px 0 20px;
    color: #999;
    font-size: 13px;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background-color: #ddd;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

/* 카카오 버튼 */
.kakao-btn {
    width: 100%;
    padding: 14px;
    background-color: #FEE500;
    color: #000;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.kakao-btn:hover {
    background-color: #FDD835;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(254, 229, 0, 0.3);
}

.kakao-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(254, 229, 0, 0.3);
}

.kakao-icon {
    flex-shrink: 0;
}

/* 태블릿 (768px ~ 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 40px 20px;
    }

    .login-section {
        max-width: 500px;
    }

    .login-box {
        padding: 44px 36px;
    }
}

/* 모바일 (~ 767px) */
@media (max-width: 767px) {
    .container {
        padding: 20px 16px;
        background-attachment: scroll;
    }

    .login-section {
        max-width: 100%;
    }

    .login-box {
        padding: 36px 28px;
        border-radius: 10px;
    }

    .login-box h1 {
        font-size: 24px;
        margin-bottom: 28px;
    }

    .login-box input[type="text"],
    .login-box input[type="password"] {
        font-size: 16px; /* iOS 자동 줌 방지 */
        padding: 12px 14px;
    }

    .login-btn,
    .kakao-btn {
        padding: 13px;
        font-size: 15px;
    }
}

/* 작은 모바일 (~ 480px) */
@media (max-width: 480px) {
    .container {
        padding: 16px 12px;
    }

    .login-box {
        padding: 32px 24px;
    }

    .login-box h1 {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .divider::before,
    .divider::after {
        width: 30%;
    }
}
