/* 全局重置与字体 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: radial-gradient(circle at 50% 10%, #1e3a8a 0%, #0f172a 60%, #020617 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* 背景星星 */
.stars { position: absolute; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.star {
    position: absolute;
    background: #22d3ee;
    border-radius: 50%;
    box-shadow: 0 0 10px #22d3ee, 0 0 20px #22d3ee;
    animation: float 6s infinite ease-in-out;
}

/* 登录卡片 */
.login-container {
    position: relative;
    z-index: 10;
    width: 400px; /* 稍微加宽一点，容纳大字 */
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    text-align: center;
    animation: slideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 真实Logo图片样式 */
.logo-wrapper { margin-bottom: 25px; position: relative; }
.logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain; /* 保持图片比例 */
    margin: 0 auto 15px;
    display: block;
    /* 橙色发光特效，配合Logo颜色 */
    filter: drop-shadow(0 0 15px rgba(249, 115, 22, 0.8)) drop-shadow(0 0 30px rgba(249, 115, 22, 0.4));
    animation: logoFloat 3s ease-in-out infinite; /* 添加轻微悬浮动画 */
}

/* 两侧闪光 */
.sparkle { position: absolute; color: #22d3ee; font-size: 24px; animation: pulse 2s infinite; }
.sparkle.left { top: 10px; left: 10px; }
.sparkle.right { top: 20px; right: 10px; animation-delay: 1s; }

/* 标题 */
h1 {
    color: #ffffff;
    font-size: 22px;
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
}
.subtitle {
    color: #94a3b8;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* 表单 */
.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { color: #cbd5e1; font-size: 12px; display: block; margin-bottom: 8px; letter-spacing: 1px; }
.input-wrapper { position: relative; }

input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(2, 6, 23, 0.5);
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

input:focus {
    border-color: #f97316;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.3);
    background: rgba(2, 6, 23, 0.7);
}

input::placeholder { color: #64748b; }

.icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #22d3ee;
    font-size: 18px;
    transition: color 0.3s;
}

.input-wrapper:hover .icon { color: #f97316; }

/* 按钮 */
.login-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    letter-spacing: 2px;
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.4);
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.login-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.7s;
}

.login-btn:hover::after { left: 100%; }
.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.6), 0 0 15px rgba(251, 146, 60, 0.5);
}
.login-btn:active { transform: translateY(0); }

/* 按钮禁用状态 */
.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.2);
}

/* 底部链接 */
.footer-links { margin-top: 20px; display: flex; justify-content: space-between; font-size: 13px; }
.footer-links a { color: #94a3b8; text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: #22d3ee; text-shadow: 0 0 5px rgba(34, 211, 238, 0.5); }

/* 提示消息 */
.message-box { margin-top: 15px; min-height: 20px; font-size: 14px; font-weight: bold; }
.message-box.success { color: #4ade80; text-shadow: 0 0 10px rgba(74, 222, 128, 0.5); }
.message-box.error { color: #f87171; text-shadow: 0 0 10px rgba(248, 113, 113, 0.5); }

/* 底部版权 */
.footer {
    position: absolute;
    bottom: 20px;
    z-index: 10;
    text-align: center;
    color: #64748b;
    font-size: 12px;
    line-height: 1.8;
    letter-spacing: 1px;
}

/* 动画 */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes float {
    0% { transform: translateY(0) scale(1); opacity: 0.8; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 0.8; }
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(1); opacity: 0.6; }
}