/* auth.css - 用户认证页面样式 */

/* 认证容器 */
#bio-auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
    margin: 0 auto;
    margin-top:70px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.bio-auth-wrapper {
    width: 100%;
    max-width: 450px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 选项卡 */
.bio-auth-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e8e8e8;
}

.bio-tab-btn {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.bio-tab-btn.active {
    color: #667eea;
    background: white;
}

.bio-tab-btn.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #667eea;
}

.bio-tab-btn:hover:not(.active) {
    background: rgba(102, 126, 234, 0.05);
}

/* 表单容器 */
.bio-auth-form {
    display: none;
    padding: 40px;
    animation: fadeIn 0.5s ease;
}

.bio-auth-form.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 表单标题 */
.bio-form-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.bio-form-subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* 错误信息 */
.bio-auth-error {
    background: #ffeaea;
    color: #ff4757;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border-left: 4px solid #ff4757;
}

/* 表单组 */
.bio-form-group {
    margin-bottom: 20px;
}

.bio-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.bio-required {
    color: #ff4757;
}

.bio-form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.bio-form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.bio-form-hint {
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
}

/* 表单选项 */
.bio-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.bio-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.bio-checkbox input {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.bio-forgot-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
}

.bio-forgot-link:hover {
    text-decoration: underline;
}

/* 提交按钮 */
.bio-submit-btn {
    width: 100%;
    padding: 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.bio-submit-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* 分割线 */
.bio-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #888;
}

.bio-divider::before,
.bio-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.bio-divider span {
    padding: 0 15px;
    font-size: 0.9rem;
}

/* 社交登录按钮 */
.bio-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.bio-social-btn svg {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.bio-google-btn:hover {
    background: #f8f9fa;
    border-color: #db4437;
    color: #db4437;
}

.bio-google-btn svg {
    fill: #db4437;
}

/* 密码强度检查 */
.bio-password-strength {
    margin-top: 10px;
}

.bio-strength-bar {
    width: 100%;
    height: 5px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.bio-strength-progress {
    height: 100%;
    width: 0%;
    background: #e0e0e0;
    border-radius: 3px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.bio-strength-text {
    font-size: 0.85rem;
    color: #888;
}

/* 页脚 */
.bio-auth-footer {
    padding: 20px 40px;
    background: #f8f9fa;
    border-top: 1px solid #e8e8e8;
    text-align: center;
}

.bio-auth-footer p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.bio-auth-footer a {
    color: #667eea;
    text-decoration: none;
}

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

/* 响应式设计 */
@media (max-width: 480px) {
    .bio-auth-wrapper {
        border-radius: 10px;
    }
    
    .bio-auth-form {
        padding: 30px 20px;
    }
    
    .bio-form-title {
        font-size: 1.5rem;
    }
    
    .bio-tab-btn {
        padding: 15px 10px;
        font-size: 1rem;
    }
    
    .bio-form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .bio-auth-footer {
        padding: 15px 20px;
    }
}