/* 로그인 페이지 스타일 */
.login-section {
    padding: 60px 0;
    background-color: #1e2a3a; /* 배경 이미지가 로드되지 않았을 때의 대체 색상 */
    background-image: url('../res/login_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
}

.login-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* 어두운 오버레이 추가 */
    z-index: 1;
}

.login-section .container {
    position: relative;
    z-index: 2;
}

.login-form, .forgot-password-form {
    max-width: 500px;
    margin: 0 auto;
    margin-top: 30px;
    background-color: rgba(255, 255, 255, 0.95); /* 약간 투명도 있는 흰색 배경 */
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #333;
    font-weight: 600;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600; /* 기존보다 약간 더 굵게 */
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: #1e5bb0;
    outline: none;
    box-shadow: 0 0 8px rgba(30, 91, 176, 0.2);
}

.form-help {
    font-size: 13px;
    color: #777;
    margin-top: 5px;
}

.required {
    color: #e74c3c;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
}

.forgot-password a {
    color: #1e5bb0;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password a:hover {
    color: #154787;
    text-decoration: underline;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

.btn-login {
    display: inline-block;
    padding: 14px 35px;
    background-color: #1e5bb0;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(30, 91, 176, 0.3);
    width: 100%;
}

.btn-login:hover {
    background-color: #154787;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 91, 176, 0.4);
}

.btn-login:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-cancel {
    display: inline-block;
    padding: 14px 35px;
    background-color: transparent;
    color: #6c757d;
    border: 1px solid #6c757d;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    width: 100%;
}

.btn-cancel:hover {
    background-color: #f8f9fa;
}

.register-link {
    margin-top: 20px;
    font-size: 16px;
    color: #555;
}

.register-link a {
    color: #1e5bb0;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

/* 알림 메시지 스타일 */
#message-container, #forgot-message-container {
    margin-bottom: 20px;
}

.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-error {
    background-color: rgba(248, 215, 218, 0.95);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-success {
    background-color: rgba(212, 237, 218, 0.95);
    color: #155724;
    border-left: 4px solid #28a745;
}

/* 필드 유효성 표시 스타일 */
.form-group.has-error input {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

.form-group.has-success input {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    animation: fadeIn 0.3s;
}

/* 페이지 헤더 숨김 처리 */
.page-header {
    display: none;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .login-form, .forgot-password-form {
        padding: 30px 20px;
    }
    
    .login-section {
        padding: 40px 0;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .forgot-password {
        align-self: flex-end;
    }
} 