body {
    font-family: 'Segoe UI', Arial, sans-serif;
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: bgSlide 15s infinite;
    background-size: cover;
    background-position: center;
    position: relative;
}

@keyframes bgSlide {
    0% { background-image: url('../img/bg1new.jpg'); }
    33% { background-image: url('../img/bg2new.jpg'); }
    66% { background-image: url('../img/bg3new.jpg'); }
    100% { background-image: url('../img/bg1new.jpg'); }
}

/* 오버레이 유지 */
.bg-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 0;
}

.login-container {
    background-color: rgba(255,255,255,0.95);
    width: 380px;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    text-align: center;
    position: relative;
    z-index: 10;
}

.login-logo img {
    width: 190px;
    margin-bottom: 1rem;
}

.login-subtitle {
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

input[type="text"],
input[type="password"] {
    width: 90%;
    padding: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

button.login-btn {
    width: 100%;
    padding: 0.9rem;
    background-color: #1877f2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

button.login-btn:hover {
    background-color: #145dbf;
}

.footer-links {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #222;
}

.footer-links a {
    color: #222;
    text-decoration: none;
    margin: 0 0.3rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* 텔레그램 버튼 */
.telegram-btn {
    margin-top: 1.4rem;
    background: #0088cc;
    padding: 0.8rem;
    color: white;
    font-weight: 600;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.telegram-btn img {
    width: 20px;
    height: 20px;
}

.account-buttons {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.account-btn {
    padding: 0.7rem 1rem;
    border-radius: 6px;
    border: 1px solid #1877f2;
    background-color: white;
    color: #1877f2;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.account-btn:hover {
    background-color: #1877f2;
    color: white;
}

/* ============================
반응형 스타일 (Responsive)
=============================== */

/* (1) 태블릿 이하 900px */
@media (max-width: 900px) {
    .login-container {
        width: 70%;
        padding: 2rem;
    }

    input[type="text"],
    input[type="password"] {
        width: 95%;
        padding: 0.85rem;
    }
}

/* (2) 모바일 중간 600px 이하 */
@media (max-width: 600px) {
    body {
        padding: 20px;
        align-items: flex-start;
        padding-top: 12vh;
    }

    .login-container {
        width: 90%;
        padding: 1.8rem;
    }

    .login-logo img {
        width: 150px;
    }

    .login-subtitle {
        font-size: 0.85rem;
    }

    input[type="text"],
    input[type="password"] {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    button.login-btn {
        font-size: 0.9rem;
        padding: 0.85rem;
    }

    .telegram-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .footer-links {
        font-size: 0.8rem;
    }

    .account-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .account-btn {
        text-align: center;
        width: 100%;
        padding: 0.75rem;
    }
}

/* (3) 초소형 모바일 400px 이하 */
@media (max-width: 400px) {
    .login-container {
        width: 95%;
        padding: 1.4rem;
    }

    .login-logo img {
        width: 130px;
    }

    input[type="text"],
    input[type="password"] {
        padding: 0.7rem;
        font-size: 0.85rem;
    }

    button.login-btn {
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    .telegram-btn {
        padding: 0.7rem;
        font-size: 0.85rem;
    }
}
