/* OAuth2 로그인 페이지 스타일 - 메인 페이지와 일치하는 모던 디자인 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #fafbfc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(25,118,210,0.08), 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(25,118,210,0.06);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: linear-gradient(135deg, #fff 0%, #f8faff 100%);
    padding: 40px 30px 30px 30px;
    text-align: center;
    border-bottom: 1px solid rgba(25,118,210,0.06);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #1976d2;
}

.login-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.login-form-container {
    padding: 40px 30px;
    background: white;
}

.oauth-intro {
    text-align: center;
    margin-bottom: 30px;
}

.oauth-intro p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* 에러 메시지 스타일 */
.error-message {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border: 1px solid #ef5350;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c62828;
    font-size: 14px;
    font-weight: 500;
}

.error-message i {
    font-size: 16px;
    color: #d32f2f;
}

/* 성공 메시지 스타일 */
.success-message {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border: 1px solid #4caf50;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2e7d32;
    font-size: 14px;
    font-weight: 500;
}

.success-message i {
    font-size: 16px;
    color: #388e3c;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(25,118,210,0.1);
    border-radius: 12px;
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
    color: #333;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 0 2px 8px rgba(25,118,210,0.08), 0 1px 3px rgba(0,0,0,0.04);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(25,118,210,0.15), 0 4px 12px rgba(0,0,0,0.08);
    border-color: rgba(25,118,210,0.2);
}

.social-btn:active {
    transform: translateY(0);
}

.kakao-btn {
    background: linear-gradient(135deg, #fee500 0%, #fdd835 100%);
    border-color: #fee500;
    color: #3c1e1e;
}

.kakao-btn:hover {
    background: linear-gradient(135deg, #fdd835 0%, #fbc02d 100%);
    border-color: #fdd835;
    box-shadow: 0 8px 20px rgba(254, 229, 0, 0.3);
}

.naver-btn {
    background: linear-gradient(135deg, #03c75a 0%, #02b351 100%);
    border-color: #03c75a;
    color: white;
}

.naver-btn:hover {
    background: linear-gradient(135deg, #02b351 0%, #019e47 100%);
    border-color: #02b351;
    box-shadow: 0 8px 20px rgba(3, 199, 90, 0.3);
}

.google-btn {
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
    border-color: rgba(25,118,210,0.1);
    color: #333;
}

.google-btn:hover {
    background: linear-gradient(135deg, #f0f4ff 0%, #e3f2fd 100%);
    border-color: rgba(25,118,210,0.2);
    box-shadow: 0 8px 20px rgba(25, 118, 210, 0.15);
}

.apple-btn {
    background: linear-gradient(135deg, #000 0%, #333 100%);
    border-color: #000;
    color: white;
}

.apple-btn:hover {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    border-color: #333;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.terms-notice {
    text-align: center;
    font-size: 12px;
    color: #999;
    line-height: 1.4;
    margin-top: 20px;
}

.terms-notice a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
}

.terms-notice a:hover {
    text-decoration: underline;
}

.login-footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 12px;
    border-top: 1px solid rgba(25,118,210,0.06);
}

/* 반응형 디자인 */
@media (max-width: 480px) {
    .login-container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .login-header {
        padding: 30px 20px;
    }
    
    .login-form-container {
        padding: 30px 20px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .social-btn {
        padding: 14px;
        font-size: 15px;
    }
    
    .oauth-intro p {
        font-size: 14px;
    }
}

/* 로딩 상태 */
.social-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.social-btn.loading span {
    display: none;
}

.social-btn.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 알림 메시지 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification.success {
    background: #4caf50;
    color: white;
}

.notification.error {
    background: #f44336;
    color: white;
}

.notification.info {
    background: #2196f3;
    color: white;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.notification-close:hover {
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.notification-content i {
    margin-right: 8px;
    font-size: 16px;
}

/* 사용자 정보 표시 영역 */
.user-info-container {
    padding: 40px 30px;
    background: white;
    animation: slideUp 0.6s ease-out;
}

.user-info {
    text-align: center;
}

.user-profile {
    margin-bottom: 30px;
}

.profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1976d2;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
}

.user-details h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1976d2;
    margin-bottom: 8px;
}

.user-details p {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
    line-height: 1.4;
}

.user-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.logout-btn, .home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}

.logout-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.logout-btn:hover {
    background: linear-gradient(135deg, #ee5a52 0%, #d63031 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

.home-btn {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.home-btn:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(25, 118, 210, 0.4);
}

.logout-btn:active, .home-btn:active {
    transform: translateY(0);
}

/* 반응형 디자인 - 사용자 정보 */
@media (max-width: 480px) {
    .user-info-container {
        padding: 30px 20px;
    }
    
    .profile-image {
        width: 70px;
        height: 70px;
    }
    
    .user-details h3 {
        font-size: 18px;
    }
    
    .user-details p {
        font-size: 13px;
    }
    
    .logout-btn, .home-btn {
        padding: 12px 16px;
        font-size: 15px;
    }
} 