* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-wrapper {
    width: 100%;
    max-width: 400px;
    position: relative;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.icon-logo {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.site-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.subtitle {
    color: #666;
    font-size: 14px;
    font-weight: 400;
}

.login-form {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #999;
    font-size: 16px;
    z-index: 2;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.toggle-password {
    position: absolute;
    right: 15px;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #667eea;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #666;
}

.remember-me input {
    margin-right: 8px;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e5e9;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #999;
    font-size: 14px;
}

.quick-actions {
    display: flex;
    gap: 10px;
}

.quick-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e1e5e9;
    background: white;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #666;
}

.quick-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    opacity: 0.7;
    animation: float-clouds 20s infinite linear;
}

.cloud1 {
    width: 100px;
    height: 40px;
    top: 20%;
    left: -100px;
    animation-delay: 0s;
    animation-duration: 25s;
}

.cloud2 {
    width: 80px;
    height: 30px;
    top: 40%;
    left: -80px;
    animation-delay: 8s;
    animation-duration: 30s;
}

.cloud3 {
    width: 120px;
    height: 50px;
    top: 60%;
    left: -120px;
    animation-delay: 15s;
    animation-duration: 35s;
}

.cloud4 {
    width: 90px;
    height: 35px;
    top: 80%;
    left: -90px;
    animation-delay: 20s;
    animation-duration: 28s;
}

@keyframes float-clouds {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(100vw + 200px));
    }
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px 0;
    font-size: 12px;
    z-index: 10;
}

.footer-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content p {
    margin: 3px 0;
    line-height: 1.4;
}

.footer-link,
.icp-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover,
.icp-link:hover {
    color: #667eea;
    text-decoration: underline;
}

.icp-info {
    margin-top: 5px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .site-title {
        font-size: 24px;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .quick-btn {
        width: 100%;
    }
    
    .footer {
        position: relative;
        margin-top: 40px;
    }
    
    .container {
        min-height: calc(100vh - 120px);
    }
}

/* 暗色主题支持 */
@media (prefers-color-scheme: dark) {
    .login-box {
        background: rgba(30, 30, 30, 0.95);
        color: #e0e0e0;
    }
    
    .site-title {
        color: #fff;
    }
    
    .subtitle {
        color: #ccc;
    }
    
    input[type="text"],
    input[type="password"] {
        background: #2a2a2a;
        border-color: #444;
        color: #e0e0e0;
    }
    
    input[type="text"]:focus,
    input[type="password"]:focus {
        background: #333;
    }
    
    .quick-btn {
        background: #2a2a2a;
        border-color: #444;
        color: #ccc;
    }
    
    .divider span {
        background: rgba(30, 30, 30, 0.95);
    }
}