/* 로그인/회원가입 페이지 스타일 */

.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.auth-card {
    background: var(--card-bg, #ffffff);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card .logo-banner {
    text-align: center;
    margin: -40px -40px 20px -40px;
    padding: 20px;
    background-color: #036B3F;
    border-radius: 16px 16px 0 0;
}

.auth-card .ku-logo {
    max-width: 200px;
    height: auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 2rem;
    color: #4a90a4;
    margin-bottom: 8px;
}

.auth-header p {
    color: #666;
    font-size: 0.95rem;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 1.5rem;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.auth-form .form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fafafa;
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: #4a90a4;
    box-shadow: 0 0 0 4px rgba(74, 144, 164, 0.1);
    background: #fff;
}

.auth-form .form-group input::placeholder {
    color: #aaa;
}

.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    border-radius: 10px;
    margin-top: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #4a90a4, #3a7a94);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 164, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 0.95rem;
}

.auth-switch a {
    color: #4a90a4;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.auth-switch a:hover {
    color: #3a7a94;
    text-decoration: underline;
}

.form-description {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c00;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.success-message {
    background: #efe;
    border: 1px solid #cfc;
    color: #060;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 다크모드 */
[data-theme="dark"] .auth-card {
    background: #1a1a2e;
}

[data-theme="dark"] .auth-header h1 {
    color: #5ba3b8;
}

[data-theme="dark"] .auth-header p,
[data-theme="dark"] .auth-form .form-group label,
[data-theme="dark"] .auth-switch {
    color: #a0a0a0;
}

[data-theme="dark"] .auth-form h2 {
    color: #e0e0e0;
}

[data-theme="dark"] .auth-form .form-group input {
    background: #16213e;
    border-color: #2a2a4a;
    color: #e0e0e0;
}

[data-theme="dark"] .auth-form .form-group input:focus {
    background: #1a1a2e;
}

/* 반응형 */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
    }

    .auth-header h1 {
        font-size: 1.6rem;
    }

    .auth-form h2 {
        font-size: 1.3rem;
    }

    .auth-form .form-group input {
        padding: 12px 14px;
    }
}
