/* 认证页面通用样式 */
:root {
    --primary-color: #1890ff;
    --primary-light: #40a9ff;
    --primary-dark: #096dd9;
    --gradient-start: #1890ff;
    --gradient-end: #096dd9;
}

/* 页面基础样式 */
body {
    background: #f0f2f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* 页面包装器 */
.page-wrapper {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(24, 144, 255, 0.1) 0%, rgba(9, 109, 217, 0.1) 100%);
}

/* 主容器样式 */
.auth-container {
    width: 1200px;
    min-height: 680px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    display: flex;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 左侧区域样式 */
.auth-left {
    width: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 品牌区域样式 */
.brand {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.brand img {
    height: 60px;
    margin-bottom: 20px;
}

.brand h2 {
    color: #fff;
    font-size: 32px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brand p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-top: 10px;
}

/* 右侧区域样式 */
.auth-right {
    width: 50%;
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* 页面头部样式 */
.auth-header {
    text-align: center;
    margin-bottom: 50px;
}

.auth-header h3 {
    color: #1a1a1a;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 表单控件样式 */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-control {
    height: 56px;
    border-radius: 16px;
    border: 2px solid #e8e8e8;
    padding: 0.375rem 1.25rem;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(248, 249, 250, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-control:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(24, 144, 255, 0.1);
    transform: translateY(-1px);
}

/* 按钮样式 */
.btn-primary {
    height: 56px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(24, 144, 255, 0.3);
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

/* 页脚样式 */
.auth-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding: 0 10px;
}

.auth-footer a {
    color: #666;
    font-size: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.auth-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.auth-footer a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-footer a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* 社交登录样式 */
.social-login {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(240, 240, 240, 0.6);
    text-align: center;
    position: relative;
}

.social-login::before {
    content: '快捷登录';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 0 15px;
    color: #999;
    font-size: 14px;
}

.social-login .btn {
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 16px;
    margin: 0 10px;
    transition: all 0.3s ease;
    border: 2px solid rgba(240, 240, 240, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.social-login .btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.social-login img {
    width: 26px;
    height: 26px;
}

/* 版权信息样式 */
.copyright {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 15px 0;
    color: #666;
    font-size: 13px;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.03);
    z-index: 1000;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.copyright .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.copyright .left-info,
.copyright .right-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.copyright a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.copyright a:hover {
    color: var(--primary-light);
}

/* 快捷链接按钮样式 */
.quick-links {
    position: absolute;
    left: 30px;
    bottom: 40px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quick-link-btn {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-link-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    color: #fff;
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.3);
}

.quick-link-btn i {
    font-size: 18px;
    margin-right: 10px;
}

.quick-link-btn span {
    font-size: 14px;
    font-weight: 500;
}

/* 密码框样式 */
.password-wrapper {
    position: relative;
}

.password-eye {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
    z-index: 2;
}

.password-eye:hover {
    color: var(--primary-color);
}

.form-control.password-input {
    padding-right: 45px;
}

/* 验证码样式 */
#captcha {
    margin-bottom: 32px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#captcha * {
    border-radius: 0 !important;
}

#captcha_wait {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* 响应式样式 */
@media (max-width: 991px) {
    .auth-container {
        width: 100%;
        flex-direction: column;
        border-radius: 0;
        min-height: auto;
    }

    .auth-left,
    .auth-right {
        width: 100%;
        padding: 40px 20px;
    }

    .auth-left {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        padding: 0;
    }

    .copyright {
        position: sticky;
        bottom: 0;
    }

    .copyright .container {
        flex-direction: column;
        gap: 5px;
    }

    .copyright .left-info {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
        margin-bottom: 2px;
    }

    .copyright .right-info {
        width: 100%;
        justify-content: center;
    }

    .copyright .left-info span,
    .copyright .left-info a,
    .copyright .right-info {
        font-size: 12px;
        white-space: nowrap;
    }

    .quick-links {
        left: 20px;
        bottom: 20px;
    }

    .quick-link-btn {
        padding: 10px 16px;
    }

    .quick-link-btn i {
        font-size: 16px;
    }

    .quick-link-btn span {
        font-size: 13px;
    }

    .mx-2 {
        margin: 0 4px;
    }
}

/* 动画效果 */
.payment-animation {
    animation: floatAnimation 3s ease-in-out infinite;
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

#circleGradient {
    animation: gradientRotate 8s linear infinite;
}

@keyframes gradientRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}