/* login_white.css - 화이트 계열 깔끔한 디자인 */

:root {
    --primary-color: #3182f6;
    --primary-hover: #1b6bf5;
    --primary-light: rgba(49, 130, 246, 0.1);
    --text-primary: #191f28;
    --text-secondary: #6b7684;
    --background: #ffffff;
    --background-page: #f8f9fa;
    --border: #e5e8eb;
    --input-bg: #f9fafb;
    --error: #f04452;
    --success: #00c73c;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--background-page);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 배경 애니메이션 - 심플한 라이트 그레이 */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #f8f9fa;
}

.floating-shapes {
    display: none; /* 깔끔함을 위해 제거 */
}

/* 메인 컨테이너 */
.login-container {
    width: 100%;
    padding: 20px;
}

.login-card {
    background: var(--background);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    max-width: 460px;
    margin: 0 auto;
    padding: 60px 50px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* 로고 섹션 */
.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(49, 130, 246, 0.2);
    cursor: pointer;
}

.logo-icon:hover {
    transform: scale(1.05);
}

.logo-icon i {
    color: white;
    font-size: 32px;
}

.logo-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.logo-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* 오류 메시지 */
.error-message {
    background: rgba(240, 68, 82, 0.08);
    border: 1px solid rgba(240, 68, 82, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 24px;
    color: var(--error);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.error-message i {
    margin-right: 8px;
    font-size: 16px;
}

.error-message[data-aos] {
    animation: none;
}

.error-message:not([data-server-error]) {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 성공 메시지 */
.success-message {
    background: rgba(0, 199, 60, 0.08);
    border: 1px solid rgba(0, 199, 60, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 24px;
    color: var(--success);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    animation: slideDown 0.3s ease;
}

.success-message i {
    margin-right: 8px;
    font-size: 16px;
}

/* 폼 스타일 */
.login-form {
    margin: 0;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 16px 20px 16px 48px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.2s ease;
    outline: none;
}

.form-control::placeholder {
    color: #adb5bd;
}

.form-control:focus {
    border-color: var(--primary-color);
    background: var(--background);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 18px;
    transition: color 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 10;
}

.form-control:focus ~ .form-icon {
    color: var(--primary-color);
}

/* 체크박스 스타일 (자동 로그인) */
.form-check {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.form-check label {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

/* 로그인 버튼 */
.btn-login,
.btn.btn-login {
    width: 100%;
    padding: 16px;
    margin-top: 12px;
    border: none;
    border-radius: 12px;
    background: var(--primary-color);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-login:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 130, 246, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-login i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn-login:hover:not(:disabled) i {
    transform: translateX(3px);
}

/* 로딩 스피너 */
.loading-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

#loadingSpinner {
    display: none;
}

.btn-login:disabled .loading-spinner,
.btn-login:disabled #loadingSpinner {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 추가 링크 스타일 */
.login-links {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.login-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    margin: 0 12px;
}

.login-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* AOS 애니메이션 오버라이드 */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(20px);
}

[data-aos="fade-down"] {
    opacity: 0;
    transform: translateY(-20px);
}

[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(-20px);
}

[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(20px);
}

[data-aos="fade-in"] {
    opacity: 0;
}

.aos-animate[data-aos="fade-up"],
.aos-animate[data-aos="fade-down"],
.aos-animate[data-aos="fade-right"],
.aos-animate[data-aos="fade-left"],
.aos-animate[data-aos="fade-in"] {
    opacity: 1;
    transform: translate(0);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .login-card {
        padding: 40px 30px;
        border-radius: 20px;
    }
    
    .logo-icon {
        width: 70px;
        height: 70px;
    }
    
    .logo-icon i {
        font-size: 28px;
    }
    
    .logo-title {
        font-size: 24px;
    }
    
    .form-control {
        padding: 14px 18px 14px 44px;
        font-size: 15px;
    }
    
    .btn-login {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 16px;
    }
    
    .login-card {
        padding: 32px 24px;
        border-radius: 16px;
    }
    
    .logo-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .logo-icon i {
        font-size: 24px;
    }
    
    .logo-title {
        font-size: 22px;
    }
    
    .logo-subtitle {
        font-size: 14px;
    }
    
    .form-control {
        padding: 12px 16px 12px 42px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .form-icon {
        font-size: 16px;
        left: 14px;
    }
    
    .btn-login {
        padding: 12px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .login-links {
        padding-top: 20px;
        margin-top: 20px;
    }
    
    .login-links a {
        font-size: 13px;
        margin: 0 8px;
        display: inline-block;
        line-height: 1.8;
    }
}  