/* 用户登录注册相关样式 */

/* 登录注册页面容器 */
.auth-container {
    min-height: calc(100vh - 60px - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

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

/* 登录注册卡片 */
.auth-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

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

.auth-logo {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: #888;
    font-size: 14px;
}

/* 表单样式 */
.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-label {
    display: block;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
}

.auth-form .form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
}

.auth-form .form-input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.auth-form .form-input::placeholder {
    color: #bbb;
}

/* 带图标的输入框 */
.input-with-icon {
    position: relative;
}

.input-with-icon .layui-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.input-with-icon .form-input {
    padding-left: 44px;
}

/* 验证码输入框 */
.captcha-group {
    display: flex;
    gap: 12px;
}

.captcha-input {
    flex: 1;
}

.captcha-img {
    height: 48px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #e0e0e0;
}

/* 选项行 */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1a1a1a;
}

.forgot-link {
    color: #666;
}

.forgot-link:hover {
    color: #1a1a1a;
}

/* 提交按钮 */
.auth-submit {
    width: 100%;
    height: 48px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-submit:hover {
    background: #333;
}

.auth-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 底部链接 */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
    color: #666;
    font-size: 14px;
}

.auth-footer a {
    color: #1a1a1a;
    font-weight: 500;
}

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

/* 登录页链接 */
.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
}

.register-link {
    color: #333;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.register-link:hover {
    color: #1a1a1a;
}

.register-link .layui-icon {
    font-size: 12px;
}

/* 返回首页链接 */
.auth-back {
    text-align: center;
    margin-top: 20px;
}

.auth-back a {
    color: #666;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auth-back a:hover {
    color: #1a1a1a;
}

/* 错误提示 */
.auth-error {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #ff4d4f;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 成功提示 */
.auth-success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #52c41a;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 社交登录分隔线 */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #999;
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #f0f0f0;
}

.auth-divider span {
    padding: 0 16px;
}

/* 响应式 */
@media (max-width: 480px) {
    .auth-container {
        padding: 20px 15px;
    }
    
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-title {
        font-size: 22px;
    }
    
    .captcha-group {
        flex-direction: column;
    }
    
    .captcha-img {
        width: 100%;
        height: 44px;
        object-fit: contain;
    }
}
