* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 로그인 섹션 */
.login-section {
    min-height: calc(100vh - 80px - 200px); /* 헤더와 푸터 높이를 제외 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background-color: #f8f9fa;
}

.login-container {
    width: 100%;
    max-width: 450px;
    background-color: white;
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

/* 로그인 폼 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-input {
    width: 100%;
    height: 50px;
    padding: 0 0 10px 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s;
    background-color: transparent;
}

.form-input::placeholder {
    color: #999;
}

.form-input:focus {
    outline: none;
    border-bottom-color: #1064D9;
}

.btn-login {
    width: 100%;
    height: 50px;
    margin-top: 10px;
    background: linear-gradient(to bottom, #1064D9, #1C56A6);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-login:hover {
    opacity: 0.9;
}

.btn-signup {
    display: block;
    width: 100%;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: white;
    color: #2563eb;
    border: 1px solid #2563eb;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-signup:hover {
    background-color: #f0f7ff;
}

/* 비밀번호 찾기 */
.btn-forgot-password {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #999;
    text-decoration: none;
    margin-top: 4px;
}

.btn-forgot-password:hover {
    color: #1064D9;
    text-decoration: underline;
}

/* 아이디 저장하기 */
.remember-id {
    margin: 5px 0;
}

.remember-id label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.remember-id input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #4A90E2;
}

/* 구분선 */
.divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 40px 0;
}

/* 소셜 로그인 */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.btn-social {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-social:hover {
    opacity: 0.9;
}

.social-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.btn-naver {
    background-color: #03c75a;
    color: white;
}

.btn-kakao {
    background-color: #fee500;
    color: #000000;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .login-container {
        padding: 40px 30px;
    }

    .login-title {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .form-input,
    .btn-login,
    .btn-signup,
    .btn-social {
        height: 48px;
    }

    .social-title {
        font-size: 16px;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .login-section {
        padding: 40px 16px;
    }

    .login-container {
        padding: 30px 20px;
    }

    .login-title {
        font-size: 20px;
    }

    .form-input,
    .btn-login,
    .btn-signup,
    .btn-social {
        height: 46px;
        font-size: 14px;
    }
}

/* 로그인 실패 모달 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 350px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.modal-message {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-btn {
    width: 100%;
    height: 45px;
    background: linear-gradient(to bottom, #1064D9, #1C56A6);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.modal-btn:hover {
    opacity: 0.9;
}