* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.auth-container {
    width: 100%;
    max-width: 1100px;
    min-height: 600px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    overflow: hidden;
    margin: 20px;
}

/* 左侧品牌区 */
.auth-left {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 50px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand .logo {
    font-size: 48px;
    margin-bottom: 16px;
}

.brand h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.brand .subtitle {
    font-size: 16px;
    opacity: 0.9;
}

.features {
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.feature-icon {
    font-size: 28px;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.5;
}

/* 右侧表单区 */
.auth-right {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-box {
    width: 100%;
    max-width: 380px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.form-desc {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-block {
    width: 100%;
}

.btn-outline {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.form-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #6b7280;
}

.form-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.form-footer a:hover {
    text-decoration: underline;
}

.divider {
    text-align: center;
    margin: 28px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.divider span {
    background: white;
    padding: 0 16px;
    color: #9ca3af;
    font-size: 13px;
    position: relative;
}

.offline-section {
    text-align: center;
}

.offline-desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}

.offline-tip {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 10px;
}



/* Toast 提示 */
.toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #1f2937;
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: #10b981;
}

.toast.error {
    background: #ef4444;
}

/* 响应式 */
@media (max-width: 900px) {
    .auth-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .auth-left {
        padding: 40px 30px;
    }
    
    .auth-right {
        padding: 40px 30px;
    }
    
    .features {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-container {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }
    
    .auth-left {
        padding: 30px 24px;
    }
    
    .auth-right {
        padding: 30px 24px;
    }
    
    .brand h1 {
        font-size: 24px;
    }
}
