.loaderbox {
    display: inline-block;
    min-width: 125px;
    padding: 10px;
    margin: 0 auto;
    color: #000 !important;
    font-size: 13px;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #ddd;
    background-color: #eee;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    -ms-border-radius: 2px;
    -o-border-radius: 2px;
    border-radius: 2px;
    -webkit-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
}

.loaderbox .loading-activity {
    float: left;
    width: 14px;
    height: 14px;
    border: solid 2px transparent;
    border-top-color: #000;
    border-left-color: #000;
    border-radius: 10px;
    -webkit-animation: pace-spinner 400ms linear infinite;
    -moz-animation: pace-spinner 400ms linear infinite;
    -ms-animation: pace-spinner 400ms linear infinite;
    -o-animation: pace-spinner 400ms linear infinite;
    animation: pace-spinner 400ms linear infinite;
}
@media (max-width: 767px) {
    .loading-activity {
        width: 18px;
        height: 18px;
    }
}
@-ms-keyframes pace-spinner {
    0% {
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes pace-spinner {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 登录页全新改版样式 */
body {
    background-image: url("/assets/common/images/bg-login1.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.animated-bg {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(31,41,55,.4) 0%, rgba(17,24,39,.35) 50%, rgba(31,41,55,.4) 100%);
    animation: gradientShift 8s ease infinite;
    z-index: 0;
}

.animated-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,.2) 100%);
    z-index: 1;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.85; }
}

.particles-container {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.particles-container::before,
.particles-container::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    animation: float 15s infinite;
    opacity: 0.6;
}

.particles-container::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    background: rgba(22, 93, 255, 0.3);
}

.particles-container::after {
    top: 60%;
    right: 15%;
    animation-delay: 5s;
    background: rgba(255, 255, 255, 0.25);
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(30px, -50px) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translate(-20px, -100px) scale(0.8);
        opacity: 0.4;
    }
    75% {
        transform: translate(50px, -30px) scale(1.1);
        opacity: 0.7;
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(50px, -80px) scale(1.3);
        opacity: 0.6;
    }
    50% {
        transform: translate(-30px, -150px) scale(0.7);
        opacity: 0.2;
    }
    75% {
        transform: translate(80px, -100px) scale(1.1);
        opacity: 0.5;
    }
}

.particle {
    pointer-events: none;
}

.login-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 20px;
    z-index: 2;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25),
                0 8px 24px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    overflow: hidden;
    animation: cardEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    margin-left: 100px
}

.login-card:hover {
    transform: translateY(-5px) rotateX(2deg);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3),
                0 12px 30px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-header {
    text-align: center;
    padding: 48px 40px 32px;
    background: linear-gradient(135deg, rgba(22, 93, 255, 0.9) 0%, rgba(42, 110, 255, 0.85) 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) inset;
}

.card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

.logo-circle .layui-icon {
    font-size: 36px;
    color: var(--white);
}

.system-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
}

.welcome-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    position: relative;
    z-index: 1;
}

.card-body {
    padding: 40px;
}

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

.form-group:last-of-type {
    margin-bottom: 0;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--gray-400);
    z-index: 2;
    transition: all 0.3s ease;
}

.modern-input {
    width: 100%;
    height: 52px;
    padding: 0 20px 0 50px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    background: var(--bg-primary);
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 4px rgba(22, 93, 255, 0.12),
                0 2px 8px rgba(22, 93, 255, 0.08);
    transform: translateY(-2px);
}

.modern-input:focus + .input-line,
.modern-input:focus ~ .input-line {
    width: 100%;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-input:focus ~ .input-icon {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.captcha-group {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.captcha-input {
    flex: 1;
}

.captcha-image {
    width: 120px;
    height: 52px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    object-fit: cover;
}

.captcha-image:hover {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.25),
                0 2px 6px rgba(0, 0, 0, 0.1);
}

.submit-group {
    margin-top: 36px;
}

.login-btn {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    border-radius: 12px;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(22, 93, 255, 0.35),
                0 2px 8px rgba(0, 0, 0, 0.1);
}

.login-btn::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: left 0.5s ease;
}

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

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 93, 255, 0.45),
                0 4px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-light) 100%);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(22, 93, 255, 0.3);
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-icon {
    position: relative;
    z-index: 1;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.login-btn:hover .btn-icon {
    transform: translateX(4px);
}

.beian {
    padding: 20px 40px 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
    border-top: 1px solid var(--border-light);
    margin-top: 20px;
}

.beian a {
    color: var(--text-secondary) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.beian a:hover {
    color: var(--primary) !important;
}

@media (max-width: 768px) {
    .login-card {
        max-width: 100%;
        margin: 20px;
        border-radius: 20px;
    }
    
    .card-header {
        padding: 40px 30px 28px;
    }
    
    .card-body {
        padding: 32px 24px;
    }
    
    .beian {
        padding: 16px 24px 20px;
    }
    
    .system-title {
        font-size: 24px;
    }
    
    .logo-circle {
        width: 70px;
        height: 70px;
    }
    
    .logo-circle .layui-icon {
        font-size: 32px;
    }
    
    .captcha-group {
        flex-direction: column;
    }
    
    .captcha-image {
        width: 100%;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 20px 16px;
    }
    
    .card-header {
        padding: 32px 24px 24px;
    }
    
    .card-body {
        padding: 28px 20px;
    }
    
    .beian {
        padding: 14px 20px 18px;
        font-size: 11px;
    }
    
    .system-title {
        font-size: 22px;
    }
    
    .modern-input {
        height: 48px;
        font-size: 14px;
    }
    
    .login-btn {
        height: 52px;
        font-size: 15px;
    }
}
