.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background: rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}


.auth-wrapper::before {
    background: #6366F1;
    left: -120px;
    top: -120px;
}

.auth-wrapper::after {
    background: #22D3EE;
    right: -120px;
    bottom: -120px;
    animation-delay: -8s;
}


.auth-card {
    width: 100%;
    max-width: 440px;
    border-radius: 18px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #bfbfbf;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.brand-badge .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(closest-side, #a5b4fc, #6366F1);
    box-shadow: 0 0 12px #818cf8;
}

.auth-title {
    color: #6450a5;
    font-weight: 800;
    letter-spacing: .2px;
    margin: 4px 0 8px;
    text-align: center;
}

.auth-subtitle {
    color: #8a99b0;
    margin-bottom: 18px;
}

.form-floating > .form-control,
.form-floating > .form-control-plaintext {
    background-color: rgba(2, 6, 23, .35);
    border: 1px solid rgba(148, 163, 184, .25);
    color: #a6a6a6;
}

.form-floating > label {
    color: #a3b2c7;
}

.form-control:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 .25rem rgba(59, 130, 246, .25);
    background-color: rgba(2, 6, 23, .45);
    color: #a6a6a6;
}

.btn-gradient {
    --g1: #6366F1;
    --g2: #22D3EE;
    background-image: linear-gradient(135deg, var(--g1), var(--g2));
    color: #fff;
    border: 0;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(34, 211, 238, .25);
    transition: transform .08s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-gradient:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(34, 211, 238, .32);
}

.btn-ghost {
    border-radius: 12px;
    border: 1px dashed rgba(148, 163, 184, .35);
    color: #82bbfe;
    background: transparent;
}

.form-check-input {
    background-color: rgba(2, 6, 23, .35);
    border: 1px solid rgba(148, 163, 184, .3);
}

.form-check-input:checked {
    background-color: #6366F1;
    border-color: #6366F1;
}

.divider {
    position: relative;
    text-align: center;
    margin: 18px 0;
    color: #94a3b8;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0), rgba(148, 163, 184, .45), rgba(148, 163, 184, 0));
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.text-link {
    color: #879fff;
    text-decoration: none;
}

.text-link:hover {
    color: #7d90ff;
    text-decoration: underline;
}

/* Tiny helper for password toggle icon placement if needed later */
.input-icon-end {
    position: relative;
}

.input-icon-end .toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: .8;
}

@media (max-width: 576px) {
    .auth-card {
        padding: 22px;
    }
}

.brand-header {
    margin-bottom: 2rem;
    text-align: center;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    justify-content: center;
}

.brand-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.form-check {
    padding: 0;
    margin: 0;
    color: #a3a3a3;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(99, 102, 241, 0.4);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-check input[type="checkbox"]:hover {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.form-check input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #6366F1, #22D3EE);
    border-color: #6366F1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.form-check input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

.form-check label {
    cursor: pointer;
    user-select: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.form-check label:hover {
    color: #6366F1;
}

.image-code {
    border: 3px solid #f9bff773;
    border-radius: 10px;
    margin-left: -15px;
    opacity: 0.6;
    cursor: pointer;
    height: 48px;
}

.prompt-image-code{
    border: 3px solid #f9bff773;
    border-radius: 10px;
    cursor: pointer;
    height: 48px;
}

.btn-ghost:hover {
    color: #62d1f3;
    border: 1px dashed rgba(40, 122, 234, 0.35);
}

a {
    text-decoration: none;
}

/* apaidc login v2 */
:root{--au-bg:#f5f5f7;--au-card:#fff;--au-ink:#1d1d1f;--au-sub:#6e6e73;--au-line:#d2d2d7;--au-blue:#0071e3;--au-dark:#111113}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:system-ui,-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--au-ink)}body{background:var(--au-bg)!important;background-image:none!important}.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(380px,1fr) minmax(500px,1fr)}.auth-scene{position:relative;overflow:hidden;background:#111113;color:#fff;padding:58px;display:flex;flex-direction:column;justify-content:space-between}.auth-scene:after{content:"";position:absolute;width:420px;height:420px;right:-160px;bottom:-150px;border:1px solid rgba(255,255,255,.09);border-radius:50%;box-shadow:0 0 0 70px rgba(255,255,255,.025),0 0 0 140px rgba(255,255,255,.018)}.scene-brand{position:relative;z-index:1;display:inline-flex;align-items:center;gap:12px;color:#fff!important;font-size:16px;font-weight:650}.scene-brand img{width:34px;height:34px;border-radius:9px;background:#fff}.scene-copy{position:relative;z-index:1;max-width:520px}.scene-kicker{font-size:12px;letter-spacing:1.5px;color:#8e8e93;margin-bottom:16px}.scene-copy h1{margin:0 0 18px;font-size:46px;line-height:1.08;letter-spacing:-1.6px;font-weight:650}.scene-copy p{margin:0;color:#aeb0b6;font-size:16px;line-height:1.75}.scene-foot{position:relative;z-index:1;color:#717176;font-size:12px}.auth-panel{display:flex;align-items:center;justify-content:center;padding:50px 28px;background:#f5f5f7}.auth-box{width:100%;max-width:430px}.auth-back{display:inline-flex;align-items:center;gap:7px;margin-bottom:42px;color:#6e6e73!important;font-size:13px}.auth-back:hover{color:#1d1d1f!important}.auth-heading{margin-bottom:30px}.auth-heading h2{margin:0 0 10px;font-size:32px;line-height:1.15;letter-spacing:-.8px;font-weight:650}.auth-heading p{margin:0;color:var(--au-sub);font-size:14px}.auth-form .field{margin-bottom:18px}.auth-form label{display:block;margin:0 0 8px;font-size:13px;font-weight:600;color:#3a3a3c}.auth-form .form-control{width:100%;height:50px;padding:0 14px!important;border:1px solid var(--au-line)!important;border-radius:10px!important;background:#fff!important;color:#1d1d1f!important;font-size:15px;box-shadow:none!important}.auth-form .form-control::placeholder{color:#a1a1a6}.auth-form .form-control:focus{border-color:#0071e3!important;box-shadow:0 0 0 3px rgba(0,113,227,.12)!important}.captcha-row{display:grid;grid-template-columns:1fr 146px;gap:12px;align-items:end}.captcha-image{height:50px;width:146px;border:1px solid var(--au-line);border-radius:10px;background:#fff;object-fit:cover;cursor:pointer}.captcha-hint{display:block;margin-top:6px;text-align:center;color:#8e8e93;font-size:11px}.auth-options{display:flex;justify-content:space-between;align-items:center;margin:22px 0}.auth-check{display:flex;align-items:center;gap:8px;color:#55555a;font-size:13px}.auth-check input{width:16px;height:16px;accent-color:#0071e3}.auth-link{color:#0066cc!important;font-size:13px}.auth-link:hover{text-decoration:underline}.auth-submit{width:100%;height:48px;border:0;border-radius:10px;background:#0071e3;color:#fff;font-size:15px;font-weight:650;transition:.18s}.auth-submit:hover{background:#0066cc}.auth-submit:focus{outline:3px solid rgba(0,113,227,.2)}.auth-divider{position:relative;margin:24px 0;text-align:center;color:#8e8e93;font-size:11px}.auth-divider:before,.auth-divider:after{content:"";position:absolute;top:50%;width:42%;height:1px;background:#dedee3}.auth-divider:before{left:0}.auth-divider:after{right:0}.auth-register{text-align:center;margin:24px 0 0;color:#6e6e73;font-size:13px}.auth-register a{color:#0066cc!important;font-weight:600}.auth-register a:hover{text-decoration:underline}@media(max-width:900px){.auth-shell{grid-template-columns:1fr}.auth-scene{min-height:230px;padding:32px}.scene-copy h1{font-size:32px}.scene-copy p,.scene-foot{display:none}.auth-panel{padding:38px 20px}.auth-back{margin-bottom:28px}}@media(max-width:520px){.auth-scene{min-height:170px;padding:24px}.scene-copy h1{font-size:27px;margin-bottom:0}.scene-kicker{margin-bottom:10px}.auth-panel{align-items:flex-start;padding:32px 18px 44px}.auth-heading h2{font-size:28px}.captcha-row{grid-template-columns:minmax(0,1fr) 126px}.captcha-image{width:126px}}
