.ai-login-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 35%, #24243e 65%, #0f0c29 100%);
}

.ai-login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 25% 25%, rgba(139, 92, 246, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 75%, rgba(6, 182, 212, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    animation: aiBgShift 20s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes aiBgShift {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-2%, 1%) rotate(1deg); }
    100% { transform: translate(1%, -1%) rotate(-0.5deg); }
}

#ai-particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.ai-float-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.ai-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: aiFloat 8s ease-in-out infinite;
}

.ai-shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    top: -80px;
    right: -60px;
    animation-delay: 0s;
    animation-duration: 10s;
}

.ai-shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    bottom: -40px;
    left: -40px;
    animation-delay: -3s;
    animation-duration: 12s;
}

.ai-shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #a78bfa, #818cf8);
    top: 40%;
    left: 5%;
    animation-delay: -5s;
    animation-duration: 9s;
}

.ai-shape-4 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
    top: 15%;
    right: 10%;
    animation-delay: -2s;
    animation-duration: 11s;
}

.ai-shape-5 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #c084fc, #a78bfa);
    bottom: 20%;
    right: 20%;
    animation-delay: -7s;
    animation-duration: 8s;
}

@keyframes aiFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.ai-login-card {
    position: relative;
    z-index: 10;
    display: flex;
    width: 920px;
    max-width: 95vw;
    min-height: 560px;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(40px) saturate(1.5);
    backdrop-filter: blur(40px) saturate(1.5);
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    animation: aiCardIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes aiCardIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ai-card-left {
    flex: 0 0 48%;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: linear-gradient(160deg, rgba(139, 92, 246, 0.15) 0%, rgba(99, 102, 241, 0.08) 50%, rgba(6, 182, 212, 0.1) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-card-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.ai-brand {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.ai-brand-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #06b6d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.ai-brand-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.ai-brand h1 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.ai-brand p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    line-height: 1.6;
}

.ai-features {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.ai-feature:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.ai-feature-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-feature-icon svg {
    width: 18px;
    height: 18px;
}

.ai-feature-icon.purple {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
}

.ai-feature-icon.blue {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.ai-feature-icon.cyan {
    background: rgba(6, 182, 212, 0.2);
    color: #67e8f9;
}

.ai-feature-text h3 {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 3px 0;
}

.ai-feature-text p {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    line-height: 1.5;
}

.ai-card-left-footer {
    position: relative;
    z-index: 1;
    margin-top: 32px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
}

.ai-card-left-footer p {
    margin: 0;
}

.ai-card-right {
    flex: 1;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
}

.ai-form-header {
    margin-bottom: 32px;
}

.ai-form-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
}

.ai-form-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

.ai-qywx-area {
    margin-bottom: 20px;
    text-align: center;
}

.ai-login-form .layui-form-item {
    margin-bottom: 18px;
    clear: both;
}

.ai-login-form .ai-form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.ai-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ai-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 2;
    transition: color 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-input-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.ai-login-form .ai-input {
    width: 100%;
    height: 46px;
    padding: 0 16px 0 42px;
    font-size: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    outline: none;
    transition: all 0.25s ease;
    font-family: inherit;
    line-height: 46px;
    box-sizing: border-box;
}

.ai-login-form .ai-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
    font-weight: 400;
}

.ai-login-form .ai-input:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.ai-login-form .ai-input:focus {
    border-color: rgba(139, 92, 246, 0.6);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.ai-input-wrap:focus-within .ai-input-icon {
    color: #a78bfa;
}

.ai-captcha-wrap {
    gap: 0;
}

.ai-captcha-input {
    flex: 1;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: none !important;
}

.ai-captcha-box {
    flex-shrink: 0;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    transition: all 0.25s ease;
}

.ai-captcha-wrap:focus-within .ai-captcha-box {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
    border-left: 1px solid rgba(139, 92, 246, 0.6);
}

.ai-captcha-box img {
    height: 100%;
    cursor: pointer;
    display: block;
    transition: opacity 0.2s ease;
}

.ai-captcha-box img:hover {
    opacity: 0.8;
}

.ai-submit-btn {
    width: 100%;
    height: 46px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: none !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #4f46e5 100%) !important;
    color: #ffffff !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
    margin-top: 6px;
    font-family: inherit;
    padding: 0 !important;
    line-height: 46px !important;
    position: relative;
    overflow: hidden;
}

.ai-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.ai-submit-btn:hover::before {
    left: 100%;
}

.ai-submit-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 50%, #4338ca 100%) !important;
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.45);
    transform: translateY(-1px);
    color: #ffffff !important;
}

.ai-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.ai-form-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.2);
}

.ai-form-footer p {
    margin: 0;
}

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

.ai-brand {
    animation: aiFadeInUp 0.6s ease-out 0.1s both;
}

.ai-features .ai-feature:nth-child(1) {
    animation: aiFadeInUp 0.5s ease-out 0.2s both;
}

.ai-features .ai-feature:nth-child(2) {
    animation: aiFadeInUp 0.5s ease-out 0.3s both;
}

.ai-features .ai-feature:nth-child(3) {
    animation: aiFadeInUp 0.5s ease-out 0.4s both;
}

.ai-form-header {
    animation: aiFadeInUp 0.5s ease-out 0.15s both;
}

.ai-login-form .layui-form-item:nth-child(1) {
    animation: aiFadeInUp 0.5s ease-out 0.25s both;
}

.ai-login-form .layui-form-item:nth-child(2) {
    animation: aiFadeInUp 0.5s ease-out 0.35s both;
}

.ai-login-form .layui-form-item:nth-child(3) {
    animation: aiFadeInUp 0.5s ease-out 0.45s both;
}

.ai-login-form .layui-form-item:nth-child(4) {
    animation: aiFadeInUp 0.5s ease-out 0.55s both;
}

@media screen and (max-width: 768px) {
    .ai-login-card {
        flex-direction: column;
        width: 95vw;
        max-width: 420px;
        min-height: auto;
    }

    .ai-card-left {
        flex: none;
        padding: 32px 28px 24px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .ai-brand h1 {
        font-size: 22px;
    }

    .ai-brand p {
        font-size: 13px;
    }

    .ai-features {
        display: none;
    }

    .ai-card-left-footer {
        display: none;
    }

    .ai-card-right {
        padding: 28px;
    }

    .ai-form-header h2 {
        font-size: 22px;
    }

    .ai-shape-3,
    .ai-shape-4,
    .ai-shape-5 {
        display: none;
    }
}
