/* ============================================
   渐变多彩登录页
   ============================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 全屏渐变背景 */
.gradient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 浮动气泡 */
.bubbles {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.bubbles span {
    position: absolute;
    bottom: -150px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: bubbleFloat linear infinite;
}

.bubbles span:nth-child(1) { left: 10%; width: 20px; height: 20px; animation-duration: 8s; animation-delay: 0s; }
.bubbles span:nth-child(2) { left: 20%; width: 50px; height: 50px; animation-duration: 10s; animation-delay: 2s; }
.bubbles span:nth-child(3) { left: 35%; width: 30px; height: 30px; animation-duration: 12s; animation-delay: 4s; }
.bubbles span:nth-child(4) { left: 50%; width: 60px; height: 60px; animation-duration: 14s; animation-delay: 0s; }
.bubbles span:nth-child(5) { left: 65%; width: 25px; height: 25px; animation-duration: 9s; animation-delay: 3s; }
.bubbles span:nth-child(6) { left: 75%; width: 45px; height: 45px; animation-duration: 11s; animation-delay: 1s; }
.bubbles span:nth-child(7) { left: 85%; width: 35px; height: 35px; animation-duration: 13s; animation-delay: 5s; }
.bubbles span:nth-child(8) { left: 45%; width: 55px; height: 55px; animation-duration: 15s; animation-delay: 2s; }

@keyframes bubbleFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }
    100% {
        transform: translateY(-120vh) rotate(720deg);
        opacity: 0;
    }
}

/* 毛玻璃卡片 */
.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    padding: 20px;
    animation: cardFadeIn 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes cardFadeIn {
    0% { opacity: 0; transform: translateY(40px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.login-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 48px 40px 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

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

.logo-circle {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: 2px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.logo-circle svg {
    width: 36px;
    height: 36px;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 6px;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.login-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    letter-spacing: 2px;
}

/* 表单 */
.login-form {
    padding: 0 !important;
}

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

.input-box {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    z-index: 2;
    transition: all 0.3s ease;
}

.gradient-input {
    width: 100%;
    height: 50px !important;
    padding: 0 18px 0 46px !important;
    background: rgba(255,255,255,0.12) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    outline: none !important;
}

.gradient-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.gradient-input:focus {
    border-color: rgba(255,255,255,0.6) !important;
    background: rgba(255,255,255,0.18) !important;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.15), 0 0 20px rgba(255,255,255,0.08) !important;
}

.gradient-input:focus ~ .input-icon,
.input-box:focus-within .input-icon {
    color: #fff;
}

.login-btn {
    width: 100%;
    height: 50px;
    margin-top: 10px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    background: rgba(255,255,255,0.35);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

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

.btn-text { transition: all 0.3s ease; }
.btn-icon { display: flex; align-items: center; }

.login-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.login-btn.loading .btn-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.login-btn.success {
    background: rgba(16,185,129,0.4);
    border-color: rgba(16,185,129,0.6);
    pointer-events: none;
}

.login-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
}

.status-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 2px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    box-shadow: 0 0 8px rgba(255,255,255,0.5);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.3); }
}

/* 响应式 */
@media (max-width: 480px) {
    .login-card {
        padding: 36px 24px 32px;
        border-radius: 16px;
    }

    .login-title {
        font-size: 22px;
        letter-spacing: 4px;
    }

    .gradient-input {
        height: 46px !important;
    }

    .login-btn {
        height: 46px;
    }
}

/* LayUI 覆盖 */
.layui-layer-loading .layui-layer-content {
    background-color: transparent !important;
}
