/* 로그인 페이지 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-layout {
    display: flex;
    min-height: 100vh;
}

/* 왼쪽 사이드바 */
.login-sidebar {
    width: 30%;
    background: linear-gradient(145deg, rgba(128, 32, 250, 0.8) 8.72%, rgb(87, 46, 250) 91.28%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sidebar-content {
    text-align: center;
    color: white;
}

.sidebar-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: 2px;
}

.sidebar-subtitle {
    font-size: 1rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* 오른쪽 메인 영역 */
.login-main {
    width: 70%;
    background: #1A1A1A;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-content {
    width: 100%;
    max-width: 500px;
}

/* 메인 텍스트 */
.main-text {
    margin-bottom: 50px;
}

.main-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.main-text .highlight {
    color: rgb(128, 96, 255);
}

/* 로그인 폼 */
.login-form {
    margin-bottom: 40px;
}

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

.form-group label {
    display: block;
    color: white;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #333;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #2a2a2a;
    color: white;
}

.input-group input:focus {
    outline: none;
    border-color: #6A1B9A;
    background: #333;
    box-shadow: 0 0 0 3px rgba(106, 27, 154, 0.1);
}

.input-group input::placeholder {
    color: #888;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 25px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #555;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #6A1B9A;
    border-color: #6A1B9A;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(145deg, rgba(128, 32, 250, 0.8) 8.72%, rgb(87, 46, 250) 91.28%);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #5a1a8a;
    transform: translateY(-2px);
}

/* 로딩 오버레이 */
.loading-overlay {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.loading-spinner i {
    font-size: 2rem;
    color: #6A3DFF;
    animation: spin 1s linear infinite;
}

.loading-spinner .loading-text {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

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

/* 에러 메시지 */
.error-message,
.success-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.error-message i,
.success-message i {
    font-size: 1rem;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* 구분선 */
.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: #888;
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #333;
}

.divider span {
    padding: 0 15px;
}

/* 구글 로그인 버튼 */
.btn-google {
    width: 100%;
    padding: 14px 20px;
    background: #ffffff;
    border: 2px solid #333;
    border-radius: 8px;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-google:hover {
    background: #f5f5f5;
    border-color: #555;
    transform: translateY(-2px);
}

.google-icon {
    width: 24px;
    height: 24px;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .login-layout {
        flex-direction: column;
    }
    
    .login-sidebar {
        width: 100%;
        min-height: 200px;
    }
    
    .sidebar-title {
        font-size: 2rem;
    }
    
    .login-main {
        width: 100%;
        padding: 30px 20px;
    }
    
    .main-text h2 {
        font-size: 2rem;
    }
}
