* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* 背景粒子效果 */
.login-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.login-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(77, 208, 225, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(77, 208, 225, 0.8);
}

/* 网格背景 */
.login-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.1;
    background-image: 
        linear-gradient(rgba(77, 208, 225, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77, 208, 225, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.login-box {
    background: rgba(10, 26, 31, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(77, 208, 225, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(77, 208, 225, 0.2),
                inset 0 0 30px rgba(77, 208, 225, 0.1);
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(77, 208, 225, 0.1), transparent);
    animation: scan-login 3s ease-in-out infinite;
}

@keyframes scan-login {
    0%, 100% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    filter: drop-shadow(0 0 20px rgba(77, 208, 225, 0.6));
    animation: logo-float 3s ease-in-out infinite;
}

@keyframes logo-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.login-header h1 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(77, 208, 225, 0.6);
    background: linear-gradient(135deg, #fff 0%, #4DD0E1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    letter-spacing: 1px;
}

.login-form {
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(10, 26, 31, 0.6);
    border: 1px solid rgba(77, 208, 225, 0.3);
    border-radius: 10px;
    font-size: 14px;
    color: #fff;
    transition: all 0.3s;
    position: relative;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus {
    outline: none;
    border-color: rgba(77, 208, 225, 0.8);
    box-shadow: 0 0 20px rgba(77, 208, 225, 0.3),
                inset 0 0 10px rgba(77, 208, 225, 0.1);
    background: rgba(10, 26, 31, 0.8);
}

.form-group input:hover {
    border-color: rgba(77, 208, 225, 0.5);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, rgba(77, 208, 225, 0.2) 0%, rgba(38, 166, 154, 0.2) 100%);
    color: #4DD0E1;
    border: 1px solid rgba(77, 208, 225, 0.4);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    margin-top: 10px;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(77, 208, 225, 0.3), transparent);
    transition: left 0.5s;
}

.btn-login:hover {
    background: linear-gradient(135deg, rgba(77, 208, 225, 0.3) 0%, rgba(38, 166, 154, 0.3) 100%);
    border-color: rgba(77, 208, 225, 0.6);
    box-shadow: 0 0 30px rgba(77, 208, 225, 0.4),
                0 5px 15px rgba(0, 0, 0, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

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

.btn-login:active {
    transform: translateY(0);
}

.error-message {
    margin-top: 20px;
    padding: 12px;
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(220, 53, 69, 0.4);
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.2);
}

/* 底部装饰线 */
.login-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4DD0E1, #26A69A);
    animation: load-line 2s ease-in-out forwards;
}

@keyframes load-line {
    to {
        width: 100%;
    }
}
