/* 
 * 认证页面样式 - 现代化设计
 * 文件编码：UTF-8 with BOM
 */

.auth-page {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 100vh;
}

/* 左侧品牌区 */
.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

.auth-brand::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.brand-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 500px;
}

.brand-logo {
    font-size: 80px;
    margin-bottom: var(--space-6);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.brand-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: var(--space-3);
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: var(--space-8);
}

.brand-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    font-size: 14px;
}

.feature-icon {
    font-size: 20px;
}

/* 右侧登录区 */
.auth-form-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    padding: var(--space-8);
}

.auth-form-wrapper {
    width: 100%;
    max-width: 420px;
}

.auth-header {
    margin-bottom: var(--space-8);
}

.auth-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.auth-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
}

/* 表单样式 */
.auth-form {
    margin-bottom: var(--space-6);
}

.form-options {
    margin-bottom: var(--space-5);
}

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

.checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-600);
}

.btn-block {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: 15px;
}

/* 页脚 */
.auth-footer {
    text-align: center;
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-light);
}

.copyright {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* 响应式 */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        display: none;
    }

    .auth-form-container {
        padding: var(--space-6);
    }
}

/* 加载动画 */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 输入框动画 */
.form-input {
    transition: all 0.2s ease;
}

.form-input:focus {
    transform: translateY(-1px);
}

/* 错误动画 */
.form-error {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}
