/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--st-gradient-bg, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    min-height: 100vh;
    color: var(--st-text-primary, #333);
}

/* 暗黑模式适配 */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #3d4c91 0%, #4a3574 100%);
    }
}

/* 认证页面样式 */
.auth-container {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: var(--st-bg-primary, white);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    max-width: 1000px;
    width: 100%;
    min-height: 600px;
}

.auth-card > div {
    flex: 1;
    padding: 60px;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

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

.logo i {
    font-size: 48px;
    color: var(--st-primary-500, #6366F1);
}

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--st-text-primary);
}

.subtitle {
    color: var(--st-text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.auth-form {
    max-width: 400px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--st-text-primary);
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 15px;
    color: var(--st-text-tertiary);
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid var(--st-gray-300);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--st-primary-500, #6366F1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: var(--st-text-tertiary);
    cursor: pointer;
    padding: 5px;
}

.toggle-password:hover {
    color: var(--st-primary-500, #6366F1);
}

.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: var(--st-gray-300);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 12px;
    color: var(--st-text-secondary);
    margin-top: 5px;
}

.error-message {
    display: block;
    color: var(--st-error-500, #EF4444);
    font-size: 14px;
    margin-top: 5px;
    min-height: 20px;
}

.auth-button {
    width: 100%;
    padding: 15px;
    background: var(--st-gradient-brand, linear-gradient(135deg, #6366F1, #8B5CF6));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.auth-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--st-text-secondary);
}

.checkbox-container input {
    margin-right: 8px;
}

.forgot-password {
    color: var(--st-primary-500, #6366F1);
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: var(--st-text-secondary);
}

.auth-footer a {
    color: var(--st-primary-500, #6366F1);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-image {
    background: var(--st-gradient-brand, linear-gradient(135deg, #6366F1, #8B5CF6));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.image-content i {
    font-size: 80px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.image-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.image-content p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-container {
        padding: 0;
    }
    
    .auth-card {
        flex-direction: column;
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
    
    .auth-card > div {
        padding: 40px 30px;
    }
    
    .auth-image {
        order: -1;
        padding: 60px 30px;
    }
    
    .image-content i {
        font-size: 60px;
        margin-bottom: 20px;
    }
    
    .image-content h2 {
        font-size: 24px;
    }
    
    .logo h1 {
        font-size: 28px;
    }
    
    .auth-form {
        width: 100%;
    }
    
    .input-group input {
        padding: 12px 12px 12px 40px;
        font-size: 16px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .auth-card > div {
        padding: 30px 20px;
    }
    
    .logo i {
        font-size: 36px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .auth-button {
        padding: 12px;
        font-size: 14px;
    }
}

/* 触摸设备优化 */
@media (hover: none) {
    .auth-button:hover {
        transform: none;
        box-shadow: none;
    }
    
    .input-group input:focus {
        border-color: var(--st-primary-500, #6366F1);
    }
}

/* 注意：导航栏/卡片/网格等通用组件样式已迁移至 components.css，
   此文件仅保留认证页(auth-*)专属样式。 */
