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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8fafc;
    color: #3b82f6;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    max-width: 450px;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 14px;
}

.login-logo {
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 16px;
    color: #64748b;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    margin-bottom: 15px;
}

.login-form {
    margin-bottom: 24px;
}

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

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-label i {
    color: #6b7280;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.password-input-wrapper .form-input {
    padding-right: 48px; /* 비밀번호 토글 버튼을 위한 여유 공간 */
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.password-input-wrapper {
    position: relative;
    display: block;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.password-toggle:hover {
    color: #3b82f6;
}

.password-toggle:focus {
    outline: none;
    color: #3b82f6;
}

.password-toggle i {
    font-size: 18px;
    pointer-events: none;
}

.form-actions {
    margin: 24px 0;
}

.btn {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

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

.btn-primary.loading {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none;
}

.btn-primary.loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
    margin-bottom: 12px;
}

.btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 24px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    background: white;
    padding: 0 16px;
    color: #6b7280;
    font-size: 14px;
}

.guest-login-section {
    text-align: center;
}

.guest-info {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.auth-footer p {
    margin: 8px 0;
    font-size: 14px;
    color: #6b7280;
}

.auth-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #1d4ed8;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line;
    text-align: left;
    display: none;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.1);
}

.error-message.show {
    display: block;
    animation: slideIn 0.3s ease;
}

.success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line;
    text-align: left;
    display: none;
    box-shadow: 0 2px 4px rgba(22, 101, 52, 0.1);
}

.success-message.show {
    display: block;
    animation: slideIn 0.3s ease;
}

.features {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.features-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.features-title i {
    color: #f59e0b;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.feature-text {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.footer {
    text-align: center;
}

.footer p {
    color: #64748b;
    font-size: 14px;
}

/* 애니메이션 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 디자인 */
@media (max-width: 640px) {
    body {
        padding: 12px;
    }
    
    .login-container {
        max-width: 100%;
    }
    
    .login-card {
        padding: 24px;
    }
    
    .login-title {
        font-size: 24px;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 8px;
    }
    
    .feature-text {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 20px;
    }
    
    .form-input {
        font-size: 16px; /* iOS 줌 방지 */
    }
    
    .btn {
        font-size: 16px;
        padding: 14px 16px;
    }
} 