/* 认证页面样式 */
.auth-section {
    padding: 120px 0 80px;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
}

.auth-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-header {
    grid-column: 1 / -1;
    padding: 3rem 3rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.auth-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.auth-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    color: white;
}

.auth-form {
    padding: 3rem;
    border-right: 1px solid var(--light-gray);
}

.auth-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group label i {
    color: var(--primary-color);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-group input::placeholder {
    color: #adb5bd;
}

.form-error {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.checkbox span {
    font-size: 0.95rem;
    color: var(--gray-color);
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    margin-bottom: 1.5rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: var(--gray-color);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--light-gray);
}

.auth-divider span {
    padding: 0 1rem;
    font-size: 0.9rem;
}

.auth-social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px;
    border-radius: var(--border-radius);
    font-weight: 500;
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.btn-wechat {
    background-color: #07c160;
    color: white;
    border-color: #07c160;
}

.btn-wechat:hover {
    background-color: #06ad56;
    border-color: #06ad56;
    transform: translateY(-2px);
}

.btn-qq {
    background-color: #12b7f5;
    color: white;
    border-color: #12b7f5;
}

.btn-qq:hover {
    background-color: #0fa5de;
    border-color: #0fa5de;
    transform: translateY(-2px);
}

.auth-footer {
    text-align: center;
    color: var(--gray-color);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.auth-footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.info-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background: var(--light-color);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.info-card p {
    color: var(--gray-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-form {
        border-right: none;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .auth-header {
        padding: 2rem 1.5rem 1rem;
    }
    
    .auth-header h1 {
        font-size: 2rem;
    }
    
    .auth-form,
    .auth-info {
        padding: 2rem 1.5rem;
    }
    
    .auth-social {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .auth-section {
        padding: 100px 0 40px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
}

/* 加载状态 */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    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-success input {
    border-color: var(--success-color) !important;
}

.form-error input {
    border-color: var(--danger-color) !important;
}

/* 密码强度指示器 */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background-color: var(--light-gray);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.25rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.strength-weak {
    background-color: var(--danger-color);
    width: 33%;
}

.strength-medium {
    background-color: var(--warning-color);
    width: 66%;
}

.strength-strong {
    background-color: var(--success-color);
    width: 100%;
}

.strength-text {
    font-size: 0.8rem;
    color: var(--gray-color);
    margin-top: 0.25rem;
}
