/* ============================================================
 *  Green Theme - Login Page Global (Rose)
 *  登录页全局样式 - 基于 blue 版本同步
 * ============================================================ */

/* ====== 全局重置与字体 ====== */
* {
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Inter', 'Microsoft Yahei', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #FDF2F8 !important;
    background-size: cover !important;
    overflow: hidden !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #334155;
}

/* ====== 主容器 #login ====== */
#login {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    /* 移除旧背景图，改用CSS渐变 */
    background-image: none;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(219,39,119,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(244,114,182,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(245,158,11,0.06) 0%, transparent 50%),
        linear-gradient(135deg, #FDF2F8 0%, #FCE7F3 30%, #FDF2F8 60%, #FEF3C7 100%);
    background-size: cover;
    background-attachment: fixed;
}

/* 装饰性浮动球体 */
#login::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(219,39,119,0.15), transparent 70%);
    filter: blur(40px);
    animation: floatSlow 20s ease-in-out infinite;
}
#login::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,158,11,0.1), transparent 70%);
    filter: blur(35px);
    animation: floatSlow 25s ease-in-out infinite reverse;
}
@keyframes floatSlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

/* ====== 登录面板 .login_box ====== */
.login_box {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -220px;
    margin-top: -210px;
    padding: 36px 32px 28px;
    border-radius: 24px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 4px 6px rgba(0,0,0,0.04),
        0 20px 60px rgba(219,39,119,0.08);
    border: 1px solid rgba(255,255,255,0.6);
    z-index: 2;
    min-width: 380px;
}

/* ====== Logo 区域 ====== */
.logo {
    text-align: center;
    margin-bottom: 8px;
}
.logo img {
    max-width: 200px;
    max-height: 56px;
    vertical-align: middle;
}

/* ====== 欢迎文字 ====== */
.welcome {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

/* ====== 表单区域 ====== */
.form {
    padding: 0;
}
.form li {
    list-style-type: none;
    margin-bottom: 14px;
    position: relative;
}
.form li label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}
.form li input,
.form li select {
    width: 100%;
    height: 42px;
    line-height: 38px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    padding: 0 14px;
    outline: none;
    font-size: 14px;
    color: #1E293B;
    background: rgba(255,255,255,0.7);
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}
.form li input:focus,
.form li select:focus {
    border-color: #DB2777;
    box-shadow: 0 0 0 3px rgba(219,39,119,0.1);
    background: rgba(255,255,255,0.95);
}
.form li input::placeholder {
    color: #94A3B8;
}

/* 记住密码复选框 */
.form li.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}
.form li.remember input[type="checkbox"] {
    width: auto;
    height: auto;
    accent-color: #DB2777;
}
.form li.remember label {
    display: inline;
    font-weight: 400;
    cursor: pointer;
}

/* ====== 登录按钮 ====== */
.logininput {
    width: 100% !important;
    height: auto !important;
    min-height: 48px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: none !important;
    border-bottom: 2px solid rgba(219, 39, 119, 0.25) !important;
    border-radius: 8px 8px 0 0 !important;
    color: #1E293B !important;
    padding: 14px 18px !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    letter-spacing: 0.5px !important;
}
.btn {
    display: block;
    width: 100%;
    height: 44px;
    line-height: 44px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #BE185D, #DB2777);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 2px;
    font-family: 'Inter', 'Microsoft Yahei', sans-serif;
    box-shadow: 0 4px 12px rgba(219,39,119,0.3);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(219,39,119,0.4);
    background: linear-gradient(135deg, #9D174D, #BE185D);
}
.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(219,39,119,0.3);
}

/* ====== 底部链接 ====== */
.loginBtn {
    width: 100% !important;
    height: 48px !important;
    border: none !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #BE185D, #DB2777) !important;
    background-image: linear-gradient(135deg, #BE185D, #DB2777) !important;
    color: #fff !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(219, 39, 119, 0.35) !important;
}
.loginBtn::before {
    content: "登 录";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 4px;
    color: #fff;
    z-index: 1;
}
.bottom-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.bottom-links a {
    color: #64748B;
    font-size: 13px;
    text-decoration: none;
    margin: 0 12px;
    transition: color 0.2s;
}
.bottom-links a:hover {
    color: #DB2777;
}

/* ====== 版权信息 ====== */
.LoginBox {
    width: 420px !important;
    max-width: 100% !important;
    padding: 40px !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
    position: relative !important;
    z-index: 10 !important;
}
.copyright {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #94A3B8;
    z-index: 1;
}
