/* 沉浸式高级 AI 登录界面 */
:root {
    --primary-color: #00f2ff;
    --secondary-color: #7000ff;
    --bg-dark: #020617;
    --card-bg: rgba(15, 23, 42, 0.6);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 背景容器 */
.auth-page-wrapper {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* 背景图片背景 */
.auth-visual-bg {
    position: absolute;
    inset: 0;
    background: url('../assets/login-bg.png') no-repeat center center;
    background-size: cover;
    filter: brightness(0.4) saturate(1.2);
    transform: scale(1.05);
    animation: slowZoom 20s infinite alternate ease-in-out;
}

@keyframes slowZoom {
    from {
        transform: scale(1.05);
    }

    to {
        transform: scale(1.15);
    }
}

/* 渐变遮罩 */
.auth-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(2, 6, 23, 0.8) 100%);
    z-index: 2;
}

/* 动态光晕 */
.auth-glow-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    filter: blur(100px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 3;
    animation: orbMove 15s infinite alternate ease-in-out;
}

.auth-glow-orb-2 {
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    animation-delay: -7s;
}

@keyframes orbMove {
    0% {
        transform: translate(-20%, -20%);
    }

    100% {
        transform: translate(120%, 80%);
    }
}

/* 主容器 */
.auth-modal {
    position: relative;
    z-index: 10;
    display: flex;
    width: 1000px;
    max-width: 95vw;
    height: 600px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* 左侧内容 */
.auth-showcase {
    flex: 1.2;
    padding: 60px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.05) 0%, transparent 100%);
}

.auth-main-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.auth-title-gradient {
    display: block;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(0, 242, 255, 0.3));
}

.auth-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-feature-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

/* 右侧表单区 */
.auth-form-container {
    flex: 0.8;
    padding: 60px;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--border-color);
}

.auth-form-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 32px;
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-field {
    position: relative;
}

.auth-field label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    transition: color 0.3s;
}

.auth-field input {
    width: 100%;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-field input:focus {
    border-color: var(--primary-color);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 0 4px rgba(0, 242, 255, 0.1);
}

.auth-field input:focus+label {
    color: var(--primary-color);
}

.auth-submit {
    margin-top: 12px;
    padding: 14px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.2);
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 242, 255, 0.4);
    filter: brightness(1.1);
}

.auth-submit:active {
    transform: translateY(0);
}

/* 发送验证码按钮 */
.auth-send-code-btn {
    padding: 12px 20px;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    min-width: 100px;
}

.auth-send-code-btn:hover:not(:disabled) {
    background: rgba(0, 242, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 242, 255, 0.3);
}

.auth-send-code-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--text-muted);
    color: var(--text-muted);
}

.auth-footer-links {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.auth-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.auth-link:hover {
    color: var(--primary-color);
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    height: 20px;
}

.auth-footer p {
    font-size: 0.875rem;
    color: #ef4444;
    font-weight: 500;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-modal {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 淡出动画 (用于登录成功) */
.auth-modal.fade-out {
    animation: fadeOutBlur 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeOutBlur {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.05);
        filter: blur(20px);
        visibility: hidden;
    }
}

/* 响应式 */
@media (max-width: 1024px) {
    .auth-modal {
        width: 90vw;
        height: auto;
        min-height: 600px;
    }
}

@media (max-width: 768px) {
    .auth-modal {
        flex-direction: column;
        height: auto;
    }

    .auth-showcase {
        padding: 40px;
        text-align: center;
    }

    .auth-main-title {
        font-size: 2.5rem;
    }

    .auth-features {
        display: none;
    }

    .auth-form-container {
        padding: 40px;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
}
/* 验证码输入组 */
.auth-input-group {
    display: flex;
    gap: 10px;
}

.auth-input-group input {
    flex: 1;
}

.auth-action-btn {
    padding: 0 15px;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 8px;
    color: #00f2ff;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.auth-action-btn:hover:not(:disabled) {
    background: rgba(0, 242, 255, 0.2);
    border-color: #00f2ff;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

.auth-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #888;
    border-color: #444;
}
