/* ============ 棠云CDN 认证页公共样式（登录 / 注册 / 管理后台） ============ */

html, body { height: 100%; margin: 0; padding: 0; }

.auth-page {
    flex-direction: column; /* 登录卡与底部信任条上下排列（原横向flex导致信任条跑到卡片右侧） */
    font-family: -apple-system, "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background:
        radial-gradient(ellipse 80% 60% at 20% -10%, rgba(74,144,217,.16), transparent 60%),
        radial-gradient(ellipse 70% 55% at 110% 110%, rgba(74,144,217,.14), transparent 60%),
        linear-gradient(180deg, #EFF5FC 0%, #F7FAFE 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---- 背景装饰 ---- */
.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(74,144,217,.12) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 20%, transparent 78%);
    pointer-events: none;
}

.auth-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}
.auth-blob-1 {
    width: 360px; height: 360px;
    background: rgba(74,144,217,.16);
    top: -120px; right: -90px;
    animation: authFloat 12s ease-in-out infinite;
}
.auth-blob-2 {
    width: 300px; height: 300px;
    background: rgba(116,166,219,.14);
    bottom: -100px; left: -70px;
    animation: authFloat 15s ease-in-out infinite reverse;
}
@keyframes authFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-22px) scale(1.05); }
}

/* ---- 卡片 ---- */
.auth-card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(30, 60, 100, .16), 0 4px 14px rgba(30,60,100,.06);
    border: 1px solid rgba(74, 144, 217, .10);
    padding: 44px 38px 30px;
    width: 100%;
    max-width: 440px;
    overflow: hidden;
}
/* 顶部渐变描边（细节感） */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4A90D9, #6FA8DF 50%, #4A90D9);
    background-size: 200% 100%;
    animation: authSlide 6s linear infinite;
}
@keyframes authSlide { to { background-position: -200% 0; } }

/* ---- 徽标 ---- */
.auth-logo { text-align: center; margin-bottom: 30px; }

.auth-logo .logo-icon {
    width: 66px;
    height: 66px;
    border-radius: 20px;
    background: linear-gradient(135deg, #E8F0FE, #DCEBFB);
    color: #4A90D9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
    box-shadow: inset 0 0 0 1px rgba(74,144,217,.12), 0 8px 22px rgba(74,144,217,.18);
    animation: logoBreathe 4s ease-in-out infinite;
    transition: transform .25s ease;
}
.auth-logo .logo-icon:hover { transform: rotate(-8deg) scale(1.06); }
@keyframes logoBreathe {
    0%, 100% { box-shadow: inset 0 0 0 1px rgba(74,144,217,.12), 0 8px 22px rgba(74,144,217,.18); }
    50% { box-shadow: inset 0 0 0 1px rgba(74,144,217,.22), 0 10px 30px rgba(74,144,217,.28); }
}

.auth-logo h2 {
    color: #3f5f84;
    margin: 0 0 8px;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.5px;
}
.auth-logo .logo-sub {
    color: #8a97a8;
    margin: 0;
    font-size: 13.5px;
}
.auth-logo .logo-sub i { margin-right: 4px; font-size: 12px; }

/* ---- 表单 ---- */
.auth-form .form-field { margin-bottom: 20px; }

.auth-form .form-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 13px;
    color: #37475c;
    margin-bottom: 7px;
}
.auth-form .form-label .req {
    color: #dc3545;
    margin-left: 3px;
    font-weight: 700;
}

.auth-form .input-wrap { position: relative; }

.auth-form .input-wrap .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa8bb;
    font-size: 14px;
    pointer-events: none;
    transition: color .15s ease;
}

.auth-form .form-control {
    border-radius: 11px;
    border: 1px solid #dfe6ef;
    padding: 11px 14px 11px 40px;
    height: 46px;
    font-size: 14px;
    background: #FBFCFE;
    color: #2b3a4d;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.auth-form .form-control::placeholder { color: #b6c2d1; }

.auth-form .form-control:focus {
    border-color: #4A90D9;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(74, 144, 217, .14);
}
.auth-form .input-wrap:focus-within .input-icon { color: #4A90D9; }

/* 密码可见切换按钮 */
.auth-form .pwd-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #9aa8bb;
    font-size: 14px;
    cursor: pointer;
    transition: color .15s ease, background .15s ease;
}
.auth-form .pwd-toggle:hover { color: #4A90D9; background: #E8F0FE; }

/* ---- 提示 ---- */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 11px;
    padding: 12px 14px;
    font-size: 13px;
    margin-bottom: 18px;
    border: 1px solid transparent;
    animation: alertIn .3s ease;
}
.auth-alert i { margin-top: 2px; font-size: 14px; }
.auth-alert-danger {
    background: #FFF1F0;
    border-color: #FFD9D6;
    color: #c0392b;
}
.auth-alert-success {
    background: #EFFAF1;
    border-color: #D2F0D9;
    color: #1e7e34;
}
@keyframes alertIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

/* ---- 提交按钮 ---- */
.auth-form .btn-submit {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 11px;
    background: linear-gradient(180deg, #55A0E6, #4A90D9);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 6px;
    text-indent: 6px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(74, 144, 217, .32);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.auth-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(74, 144, 217, .42);
    filter: brightness(1.03);
}
.auth-form .btn-submit:active { transform: translateY(0); }
.auth-form .btn-submit:disabled { opacity: .7; cursor: not-allowed; }
.auth-form .btn-submit .spinner {
    width: 17px; height: 17px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    display: none;
    animation: authSpin .6s linear infinite;
}
.auth-form .btn-submit.loading .spinner { display: inline-block; }
@keyframes authSpin { to { transform: rotate(360deg); } }

/* ---- 底部链接 ---- */
.auth-foot { text-align: center; margin-top: 22px; font-size: 13.5px; color: #8a97a8; }
.auth-foot a {
    color: #4A90D9;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: color .15s ease;
}
.auth-foot a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 1.5px;
    background: #4A90D9;
    transition: width .2s ease;
}
.auth-foot a:hover { color: #3A7BC8; }
.auth-foot a:hover::after { width: 100%; }

.auth-meta {
    text-align: center;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px dashed #e6ecf3;
    font-size: 12px;
    color: #b0bccb;
}
.auth-meta a { color: #9aa8bb; text-decoration: none; transition: color .15s ease; }
.auth-meta a:hover { color: #4A90D9; }

/* ---- 信任条 ---- */
.auth-trust {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-top: 18px;
    color: #7d8da1;
    font-size: 13px;
    flex-wrap: wrap;
}
.auth-trust span { display: inline-flex; align-items: center; gap: 6px; }
.auth-trust i { color: #4A90D9; font-size: 14px; }

/* ---- 响应式 ---- */
@media (max-width: 480px) {
    .auth-card { padding: 34px 22px 24px; border-radius: 18px; }
    .auth-blob-1 { width: 220px; height: 220px; }
    .auth-blob-2 { width: 200px; height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-page::before, .auth-card::before,
    .auth-blob, .auth-logo .logo-icon { animation: none; }
    .auth-form .btn-submit .spinner { animation: none; }
}