@charset "utf-8";
/* ==========================================================================
   护云 CDN 控制面板 · 登录页清爽极光主题
   零侵入式覆盖 login.css，保留全部表单字段与 Smarty 变量
   ========================================================================== */

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    color: #28324d !important;
    font-size: 14px !important;
    background: linear-gradient(135deg, #eaf1ff 0%, #f7faff 42%, #e6f9f4 100%) !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* ---------- 动态背景极光 ---------- */

body::before,
body::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}

body::before {
    width: 520px; height: 520px;
    top: -160px; left: -120px;
    background: radial-gradient(circle, rgba(106, 141, 255, .40), rgba(106, 141, 255, 0) 70%);
    animation: login-drift-a 20s ease-in-out infinite alternate;
}

body::after {
    width: 560px; height: 560px;
    bottom: -200px; right: -140px;
    background: radial-gradient(circle, rgba(24, 196, 168, .34), rgba(24, 196, 168, 0) 70%);
    animation: login-drift-b 24s ease-in-out infinite alternate;
}

@keyframes login-drift-a {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(120px, 80px) scale(1.15); }
}
@keyframes login-drift-b {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-110px, -70px) scale(1.1); }
}

/* 漂浮微粒 */
.login_ico_bg,
.login_logo { display: none; }

/* ---------- 登录卡片 ---------- */

.login_container {
    position: relative;
    z-index: 1;
    max-width: none !important;
    width: 380px;
    margin: 0 !important;
    background: rgba(255, 255, 255, .88) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 24px !important;
    box-shadow: 0 24px 60px rgba(60, 82, 140, .18), 0 2px 8px rgba(60, 82, 140, .06);
    padding: 38px 36px 18px;
    box-sizing: border-box;
    animation: login-pop .6s cubic-bezier(.22, 1.1, .36, 1) both;
}

@keyframes login-pop {
    from { opacity: 0; transform: translateY(30px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- 品牌标识 ---------- */

#login {
    width: 100% !important;
    padding: 0 !important;
}

.logo {
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto 14px !important;
    background: linear-gradient(135deg, #6a8dff, #4f6ef7 55%, #18b6f6) !important;
    background-size: 200% 200% !important;
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(79, 110, 247, .38);
    position: relative;
    animation: logo-breath 12s ease infinite;
}

.logo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M19 18H6.5a4.5 4.5 0 0 1-.6-9 6 6 0 0 1 11.7-1.3A4.2 4.2 0 0 1 19 18zm-4.5-2a.8.8 0 0 0 0-1.6H8a.8.8 0 0 0 0 1.6z'/%3E%3C/svg%3E") center / 34px no-repeat;
}

.logo::after {
    content: "CDN 控制台";
    position: absolute;
    top: 76px; left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    color: #28324d;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .06em;
}

@keyframes logo-breath {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ---------- 表单排版（表格转流式） ---------- */

#login form { margin-top: 52px; }

#login .table,
#login .table tbody,
#login .table tr,
#login .table td {
    display: block;
    width: 100%;
}

#login .table tr { margin-bottom: 16px; }

#login .table td {
    padding: 0 !important;
    text-align: left !important;
}

#login .table td:first-child {
    font-size: 13px;
    font-weight: 700;
    color: #6b7a99;
    margin-bottom: 7px;
    letter-spacing: .04em;
}

#login input[type="text"],
#login input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    height: 46px !important;
    padding: 0 14px 0 44px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    color: #28324d !important;
    background-color: #f5f8fd !important;
    border: 1px solid #e2e9f5 !important;
    border-radius: 12px !important;
    transition: all .2s ease;
}

#login #username {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234f6ef7'%3E%3Cpath d='M12 12a5 5 0 1 0-5-5 5 5 0 0 0 5 5zm0 2c-4.2 0-8 2.1-8 6v1h16v-1c0-3.9-3.8-6-8-6z'/%3E%3C/svg%3E") no-repeat 14px center / 18px, #f5f8fd !important;
}

#login input[type="password"] {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234f6ef7'%3E%3Cpath d='M17 9h-1V7a4 4 0 0 0-8 0v2H7a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2zm-7 0V7a2 2 0 0 1 4 0v2z'/%3E%3C/svg%3E") no-repeat 14px center / 18px, #f5f8fd !important;
}

#login input[type="text"]:hover,
#login input[type="password"]:hover { border-color: #cdd9ee !important; }

#login input[type="text"]:focus,
#login input[type="password"]:focus {
    outline: none;
    background-color: #fff !important;
    border-color: #6a8dff !important;
    box-shadow: 0 0 0 4px rgba(79, 110, 247, .13);
}

/* 验证码：输入框与验证码图片同一行 */
#login .captcha-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
}
#login .captcha-row input[name="imgnumber"] {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    box-sizing: border-box;
    height: 46px;
    padding: 0 14px !important;
    font-size: 14px;
    color: #28324d;
    border: 1px solid #e2e9f5;
    border-radius: 12px;
    background: #f5f8fd;
    transition: all .2s ease;
}
#login .captcha-row input[name="imgnumber"]:focus {
    outline: none;
    border-color: #6a8dff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 110, 247, .13);
}
#login .captcha-row img {
    flex: 0 0 auto;
    height: 46px;
    width: auto;
    max-width: 150px;
    margin: 0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(60, 82, 140, .12);
}

/* ---------- 登录按钮 ---------- */

.login_btn {
    width: 100% !important;
    height: 48px !important;
    border: none !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #6a8dff, #4f6ef7 55%, #3b55e6) !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: .25em;
    text-indent: .25em;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(79, 110, 247, .35);
    transition: transform .2s ease, box-shadow .25s ease, filter .2s ease;
    position: relative;
    overflow: hidden;
}

.login_btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 14px 30px rgba(79, 110, 247, .45);
}

.login_btn:active { transform: translateY(0); }

.login_btn::after {
    content: "";
    position: absolute;
    top: 0; left: -80%;
    width: 55%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .4), transparent);
    transform: skewX(-20deg);
    transition: left .6s ease;
}
.login_btn:hover::after { left: 135%; }

/* ---------- 底部版本信息 ---------- */

.ver {
    float: none !important;
    margin: 4px 0 0 !important;
    text-align: center;
    color: #9aa8c2;
    font-size: 12px;
}
.ver a { color: #4f6ef7 !important; font-weight: 600; }
.ver a:hover { color: #3b55e6 !important; }

.clear { display: none; }

/* ---------- 错误提示页 ---------- */

#login h1 {
    font-size: 20px;
    color: #e11d48;
    font-weight: 700;
    margin: 10px 0;
}
#login h3 {
    font-size: 15px;
    color: #4f6ef7 !important;
    font-weight: 700;
    margin: 8px 0;
}

/* ---------- 响应式 ---------- */

@media only screen and (max-width: 480px) {
    .login_container {
        width: calc(100vw - 40px);
        padding: 32px 24px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
