/* css/auth.css - 登录注册页的全局玻璃拟态样式与全屏背景布局 */

.auth-layout {
    min-height: 100vh;
    width: 100%;
    /* 更贴近 login.png 中天空的淡蓝色渐变，消除突兀感 */
    background: linear-gradient(135deg, #81d5f9 0%, #3caeff 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 10%;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

/* 左侧文案与插图视觉区域 */
.auth-visual {
    flex: 1;
    max-width: 650px;
    color: #fff;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-hero-img {
    width: 135%;
    max-width: 800px;
    height: auto;
    margin-top: 10px;
    margin-left: -15%;
    /* 向左微调补偿放大，使其依然对齐左侧文案 */
    /* 修复遮罩语法：使用标准的径向渐变，让图片四周完全羽化溶解到背景中，消除“贴图感” */
    -webkit-mask-image: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
    mask-image: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
    /* 给插画加上轻微的悬浮呼吸动画，增加科技闯关感 */
    /* animation: float 6s ease-in-out infinite; */
}

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

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

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

.auth-visual h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: 2px;
    line-height: 1.2;
}

.auth-visual p {
    font-size: 1.5rem;
    font-weight: 500;
    opacity: 0.95;
    letter-spacing: 1px;
}

/* 右侧毛玻璃面板 */
.auth-panel {
    width: 420px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.3);
    border-radius: 28px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* 面板右上角关闭按钮 */
.auth-panel .close-btn {
    position: absolute;
    top: 20px;
    right: 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.4rem;
    cursor: pointer;
    transition: color 0.3s;
    text-decoration: none;
}

.auth-panel .close-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

.auth-panel h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

/* 玻璃态表单容器 */
.glass-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 错误提示 */
.auth-panel .alert {
    width: 100%;
    background: rgba(255, 51, 51, 0.15);
    border: 1px solid rgba(255, 51, 51, 0.4);
    color: #ffe6e6;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-align: center;
    backdrop-filter: blur(4px);
}

.glass-input-group {
    position: relative;
    width: 100%;
}

.glass-input-group input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-weight: 500;
}

.glass-input-group input::placeholder {
    color: #999;
    font-weight: 400;
}

.glass-input-group input:focus {
    background: #fff;
    border-color: #3bb3fe;
    box-shadow: 0 0 0 4px rgba(59, 179, 254, 0.3);
}

/* 输入框右侧图标 */
.glass-input-group i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1.1rem;
    pointer-events: none;
}

/* 额外选项 (忘记密码、验证码登录) */
.auth-options {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.9rem;
    margin-bottom: 10px;
    padding: 0 4px;
}

.auth-options a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s;
}

.auth-options a:hover {
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* 渐变主按钮 */
.btn-glass-primary {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    /* 清新的薄荷绿渐变至天空蓝，符合效果图 */
    background: linear-gradient(90deg, #34e89e 0%, #16a085 100%);
    border: none;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(22, 160, 133, 0.4);
    transition: all 0.3s ease;
    margin-top: 5px;
    letter-spacing: 2px;
}

.btn-glass-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(22, 160, 133, 0.6);
    background: linear-gradient(90deg, #44f2ab 0%, #1abc9c 100%);
}

/* 半透明次级按钮 */
.btn-glass-secondary {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
}

.btn-glass-secondary:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* 第三方登录区域 */
.third-party-login {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.third-party-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
}

.third-party-btn:hover {
    transform: translateY(-3px);
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.qq-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #00a4ff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 164, 255, 0.5);
}

/* 密码强度条美化 (用于注册页) */
.password-meter,
.password-meter-glass {
    display: flex;
    gap: 6px;
    margin-top: -6px;
    margin-bottom: 6px;
    padding: 0 4px;
}

.password-meter span,
.password-meter-glass span {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: 0.3s;
}

.password-meter span.active.weak,
.password-meter-glass span.active.weak {
    background: #ff4d4f;
    box-shadow: 0 0 8px #ff4d4f;
}

.password-meter span.active.medium,
.password-meter-glass span.active.medium {
    background: #faad14;
    box-shadow: 0 0 8px #faad14;
}

.password-meter span.active.strong,
.password-meter-glass span.active.strong {
    background: #52c41a;
    box-shadow: 0 0 8px #52c41a;
}

#passwordHint,
.password-hint-glass {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    padding-left: 4px;
    display: block;
    margin-top: -4px;
    margin-bottom: 4px;
}

@media (max-width: 900px) {
    .auth-layout {
        flex-direction: column;
        justify-content: center;
        padding: 32px 20px;
        background-position: center center;
        overflow: auto;
    }

    .auth-visual {
        text-align: center;
        padding-bottom: 40px;
    }

    .auth-visual h1 {
        font-size: 2.5rem;
    }

    .auth-visual p {
        font-size: 1.2rem;
    }

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