/* 登录页面样式 - 科技感设计 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    background: #0a0e27;
}

/* 动态背景 */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(79, 172, 254, 0.2) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    -webkit-animation: rotate 20s linear infinite;
}

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

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

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(102, 126, 234, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    -webkit-animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@-webkit-keyframes gridMove {
    0% { -webkit-transform: translate(0, 0); }
    100% { -webkit-transform: translate(50px, 50px); }
}

.bg-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(102, 126, 234, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.8);
    animation: float 15s infinite ease-in-out;
    -webkit-animation: float 15s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 2.5s; }
.particle:nth-child(8) { left: 80%; animation-delay: 4.5s; }
.particle:nth-child(9) { left: 90%; animation-delay: 1.5s; }
.particle:nth-child(10) { left: 15%; animation-delay: 3.5s; }

@keyframes float {
    0%, 100% { 
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% { 
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

@-webkit-keyframes float {
    0%, 100% { 
        -webkit-transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% { 
        -webkit-transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

.bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    -webkit-filter: blur(80px);
    opacity: 0.3;
    animation: shapeMove 20s infinite ease-in-out;
    -webkit-animation: shapeMove 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    top: 50%;
    right: -175px;
    animation-delay: 10s;
}

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

@-webkit-keyframes shapeMove {
    0%, 100% {
        -webkit-transform: translate(0, 0) scale(1);
    }
    50% {
        -webkit-transform: translate(50px, 50px) scale(1.2);
    }
}

/* 登录容器 */
.login-container {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* 登录框 - 玻璃态效果 */
.login-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.login-box::before {
    -webkit-animation: shine 3s infinite;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@-webkit-keyframes slideUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0) scale(1);
    }
}

/* Logo区域 */
.login-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    animation: logoRotate 10s linear infinite;
    -webkit-animation: logoRotate 10s linear infinite;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.6));
    -webkit-filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.6));
    max-width: 80px;
    max-height: 80px;
    min-width: 80px;
    min-height: 80px;
    flex-shrink: 0;
    overflow: hidden;
}

.logo-icon svg {
    width: 100% !important;
    height: 100% !important;
    max-width: 80px !important;
    max-height: 80px !important;
    display: block;
}

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

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

.login-header h1 {
    position: relative;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.title-main {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.title-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(10px);
    -webkit-filter: blur(10px);
    opacity: 0.6;
    z-index: 1;
    animation: glowPulse 2s ease-in-out infinite;
    -webkit-animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@-webkit-keyframes glowPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 300;
    margin-top: 8px;
}

.title-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    margin: 20px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.6);
    animation: lineExpand 2s ease-in-out infinite;
    -webkit-animation: lineExpand 2s ease-in-out infinite;
}

@keyframes lineExpand {
    0%, 100% { width: 60px; opacity: 0.6; }
    50% { width: 100px; opacity: 1; }
}

@-webkit-keyframes lineExpand {
    0%, 100% { width: 60px; opacity: 0.6; }
    50% { width: 100px; opacity: 1; }
}

/* 表单样式 */
.login-form {
    margin-top: 10px;
}

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

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: rgba(102, 126, 234, 0.6);
    z-index: 2;
    transition: all 0.3s;
}

.input-wrapper:focus-within .input-icon {
    color: #667eea;
    transform: translateY(-50%) scale(1.1);
}

.form-group input {
    width: 100%;
    padding: 16px 16px 16px 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 15px;
    color: #fff;
    transition: all 0.3s;
    outline: none;
    backdrop-filter: blur(10px);
}

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

.form-group input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 
        0 0 0 3px rgba(102, 126, 234, 0.1),
        0 0 20px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    transition: width 0.3s;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.6);
}

.input-wrapper:focus-within .input-line {
    width: 100%;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    padding: 16px;
    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;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 
        0 4px 15px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-text {
    position: relative;
    z-index: 2;
    letter-spacing: 1px;
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.login-btn:hover .btn-glow {
    opacity: 1;
    animation: glowRotate 2s linear infinite;
    -webkit-animation: glowRotate 2s linear infinite;
}

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

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

.btn-arrow {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.login-btn:hover .btn-arrow {
    transform: translateX(5px);
}

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

.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;
}

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

/* 错误消息 */
.error-message {
    margin-top: 20px;
    padding: 14px 16px;
    background: rgba(255, 59, 48, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ff6b6b;
    border-radius: 10px;
    font-size: 14px;
    display: none;
    border: 1px solid rgba(255, 59, 48, 0.3);
    animation: shake 0.5s;
    -webkit-animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@-webkit-keyframes shake {
    0%, 100% { -webkit-transform: translateX(0); }
    25% { -webkit-transform: translateX(-10px); }
    75% { -webkit-transform: translateX(10px); }
}

.error-message.show {
    display: block;
}

/* 版权信息 */
.copyright-footer {
    text-align: center;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    line-height: 1.8;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 10;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.icp-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    margin: 0;
    letter-spacing: 1px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}

.icp-text span {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.icp-text a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
}

.icp-text a:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.icp-text a[href=""] {
    cursor: default;
    pointer-events: none;
}

.icp-text a[href=""]:hover {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.network-link {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.beian-icon {
    height: 14px;
    width: auto;
    margin-right: 4px;
    display: inline-block;
    vertical-align: 0;
}

.icp-link {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.icp-label {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    margin-left: 1em;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-box {
        padding: 40px 30px;
        border-radius: 20px;
    }
    
    .login-header h1 {
        font-size: 26px;
    }
    
    .logo-icon {
        width: 60px;
        height: 60px;
        max-width: 60px;
        max-height: 60px;
        min-width: 60px;
        min-height: 60px;
    }
    
    .logo-icon svg {
        max-width: 60px !important;
        max-height: 60px !important;
    }
    
    .form-group input {
        padding: 14px 14px 14px 45px;
        font-size: 14px;
    }
    
    .login-btn {
        padding: 14px;
        font-size: 15px;
    }
    
    .copyright-footer {
        font-size: 11px;
        margin-top: 30px;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body {
    animation: fadeIn 0.5s ease-in;
    -webkit-animation: fadeIn 0.5s ease-in;
}
