/* ===== Modern Vibrant Glassmorphism Login ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    background-image: 
        radial-gradient(at 0% 0%, rgba(15, 118, 110, 0.15) 0, transparent 50%), 
        radial-gradient(at 100% 0%, rgba(29, 78, 216, 0.15) 0, transparent 50%), 
        radial-gradient(at 100% 100%, rgba(15, 118, 110, 0.15) 0, transparent 50%), 
        radial-gradient(at 0% 100%, rgba(30, 64, 175, 0.15) 0, transparent 50%);
    overflow: hidden;
    position: relative;
}

/* 动态背景装饰 - 极光幻彩 */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: blobFloat 30s infinite alternate;
}
.blob-1 { width: 700px; height: 700px; background: rgba(13, 148, 136, 0.2); top: -200px; left: -200px; }
.blob-2 { width: 600px; height: 600px; background: rgba(37, 99, 235, 0.2); bottom: -250px; right: -100px; animation-delay: -10s; }
.blob-3 { width: 500px; height: 500px; background: rgba(13, 148, 136, 0.15); top: 30%; right: 5%; animation-duration: 25s; }

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 80px) scale(1.2); }
}

.login-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
    z-index: 1;
}

.login-form-container {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 28px;
    padding: 50px 40px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUpFade 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.login-header p {
    font-size: 15px;
    color: #94a3b8;
    font-weight: 500;
}

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

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 16px 16px 52px;
    background: rgba(15, 23, 42, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-size: 15px;
    color: #f8fafc;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-wrapper input:focus {
    background: rgba(15, 23, 42, 0.8);
    border-color: #0d9488;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #64748b;
    transition: color 0.3s;
}

.input-wrapper:focus-within .input-icon {
    color: #0d9488;
}

.password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
}

.password-toggle:hover {
    color: #0d9488;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
    user-select: none;
}

.checkbox-label input {
    display: none;
}

.checkbox-label:hover .checkmark {
    border-color: #0d9488;
    background: rgba(13, 148, 136, 0.05);
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1.2);
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.checkbox-label input:checked + .checkmark {
    background: #0d9488;
    border-color: #0d9488;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3);
}

.checkmark::after {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #fff;
    font-size: 11px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1.2);
}

.checkbox-label input:checked + .checkmark::after {
    transform: translate(-50%, -50%) scale(1);
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(13, 148, 136, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(13, 148, 136, 0.3);
    filter: brightness(1.1);
}

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

.login-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.login-footer p {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.login-footer a {
    color: #0d9488;
    text-decoration: none;
    font-weight: 700;
    margin-left: 4px;
}

.login-footer a:hover {
    text-decoration: underline;
    color: #14b8a6;
}

.login-footer p:last-child {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 0;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .login-container {
        padding: 15px;
    }
    .login-form-container {
        padding: 40px 24px;
        border-radius: 24px;
    }
    .login-header h1 {
        font-size: 24px;
    }
    .input-wrapper input {
        padding: 14px 14px 14px 48px;
    }
}
