.oai-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    position: relative;
    z-index: 1;
}

.grid-bg {
    display: none;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: float 15s infinite linear;
    opacity: 0.4;
}

.particle:nth-child(2n) {
    background-color: var(--secondary-color);
}

.particle:nth-child(3n) {
    background-color: var(--accent-color);
    width: 1px;
    height: 1px;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.4;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-100vh) translateX(20px);
        opacity: 0;
    }
}

.login-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 40px 20px 20px;
    position: relative;
}

.login-box {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 160, 255, 0.15);
    border: 1px solid rgba(0, 200, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), transparent, var(--secondary-color), transparent);
    z-index: -1;
    animation: border-glow 10s linear infinite;
    opacity: 0.3;
    border-radius: 14px;
}

@keyframes border-glow {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 400% 0%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: pulse 4s infinite alternate;
}

.logo-inner {
    width: 70%;
    height: 70%;
    background-color: rgba(0, 200, 255, 0.15);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.3;
    filter: blur(8px);
    border-radius: 50%;
    animation: glow 4s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes glow {
    0% {
        opacity: 0.1;
    }

    100% {
        opacity: 0.3;
    }
}

.login-header h1 {
    font-size: 32px;
    font-weight: bold;
    margin: 16px 0;
    color: var(--text-color);
    font-family: var(--font-family);
    letter-spacing: normal;
}

.input-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.input-field {
    position: relative;
    border: 1px solid rgba(0, 200, 255, 0.3);
    border-radius: 20px;
    padding: 14px 16px;
    margin-bottom: 8px;
    background: rgba(240, 250, 255, 0.6);
    transition: all 0.3s ease;
}

.input-field:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.3);
}

.input-field label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(56, 72, 99, 0.7);
    transition: all 0.2s;
    pointer-events: none;
    background: transparent;
    padding: 0 4px;
    font-family: var(--font-family);
}

.input-field input {
    width: 100%;
    border: none;
    outline: none;
    background: none;
    padding: 0;
    font-size: 16px;
    color: var(--text-color);
    font-family: var(--font-family);
}

.input-field input:focus+label,
.input-field input:not(:placeholder-shown)+label {
    top: 0;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%);
    color: var(--primary-color);
    font-weight: 600;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(56, 72, 99, 0.7);
    padding: 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-family);
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.submit-button {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 16px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    font-family: var(--heading-font);
    letter-spacing: 2px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.3);
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.5s;
}

.submit-button:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 6px 15px rgba(0, 168, 255, 0.4);
}

.submit-button:hover::before {
    left: 100%;
}

.register-link {
    text-align: center;
    margin-top: 24px;
    color: rgba(56, 72, 99, 0.8);
    font-size: 14px;
}

.register-link a {
    color: var(--secondary-color);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    font-weight: bold;
}

.register-link a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.register-link a:hover::after {
    width: 100%;
}

.error-message {
    color: var(--secondary-color);
    font-size: 14px;
    margin-top: 8px;
    text-align: center;
    display: none;
    text-shadow: 0 0 5px rgba(255, 0, 160, 0.3);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    color: rgba(56, 72, 99, 0.8);
}

.remember-me input {
    margin-right: 6px;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 200, 255, 0.1);
    opacity: 0.3;
    z-index: 999;
    animation: scanline 8s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% {
        transform: translateY(-100px);
    }

    100% {
        transform: translateY(100vh);
    }
}

.ai-blips {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.7;
}

.blip {
    width: 3px;
    height: 10px;
    background-color: var(--primary-color);
    animation: blip 1.2s infinite;
}

.blip:nth-child(2) {
    animation-delay: 0.2s;
    height: 15px;
}

.blip:nth-child(3) {
    animation-delay: 0.4s;
    height: 8px;
}

.blip:nth-child(4) {
    animation-delay: 0.6s;
    height: 12px;
}

.blip:nth-child(5) {
    animation-delay: 0.8s;
    height: 5px;
}

@keyframes blip {

    0%,
    100% {
        transform: scaleY(0.6);
        opacity: 0.6;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.social-login {
    margin-top: 24px;
    text-align: center;
}

.social-login-title {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    color: rgba(56, 72, 99, 0.7);
    font-size: 14px;
}

.social-login-title::before,
.social-login-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: rgba(0, 200, 255, 0.2);
}

.social-login-title::before {
    margin-right: 10px;
}

.social-login-title::after {
    margin-left: 10px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(240, 250, 255, 0.6);
    border: 1px solid rgba(0, 200, 255, 0.2);
    color: var(--text-color);
    transition: all 0.3s;
    cursor: pointer;
}

.social-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 168, 255, 0.2);
}

.social-button.wechat {
    color: #07C160;
}

.social-button.qq {
    color: #12B7F5;
}

.social-button.weibo {
    color: #E6162D;
}