.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: 1px solid rgba(15, 23, 42, .10);
    border-radius: 10px;
    margin-left: -15px;
    cursor: pointer;
    height: 48px;
    background: #fff;
    padding: 2px 6px;
}

.prompt-image-code {
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 10px;
    cursor: pointer;
    height: 48px;
    background: #fff;
    padding: 2px 6px;
}

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

a {
    text-decoration: none;
}


/* ==========================================================================
   简约白覆盖层（登录 / 注册 / 找回密码）

   上面的底座是「背景大图上盖毛玻璃卡片」的玻璃风：卡片底是半透明白、正文是
   #bfbfbf、输入框是半透明深蓝——都要靠一张深色大图垫底才好看。
   这里统一改成浅色平铺：浅灰底 + 纯白卡片 + 深色文字。

   模板那边同时做了两件事：<body> 上的内联背景图已移除（Authentication/Header.html），
   两个 css() 数组也都改指到本文件，所以页面配色完全由这里决定。
   ========================================================================== */

body {
    background-color: #f5f6f8;
}

.auth-wrapper {
    background: #f5f6f8;
}

/* 底座那两个装饰光斑是给深色背景配的，浅色下不需要 */
.auth-wrapper::before,
.auth-wrapper::after {
    display: none;
}

.auth-card {
    max-width: 420px;
    padding: 28px 26px;
    border: 1px solid #e8eaed;
    border-radius: 14px;
    background: #fff;
    color: #17181c;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.brand-icon {
    box-shadow: none;
}

.brand-icon:hover {
    transform: none;
    box-shadow: none;
}

.auth-title {
    color: #17181c;
    font-weight: 700;
}

.auth-subtitle {
    color: #8b9098;
}

/* 输入框：底座是半透明深蓝底，浅色页上要换成白底描边。
   用 .form-floating > .form-control 这个层级是为了压过 bootstrap 自带的
   .form-floating > .form-control / :focus 规则（同特异性，本文件后加载） */
.form-floating > .form-control,
.form-floating > .form-control-plaintext {
    border: 1px solid #e8eaed;
    border-radius: 10px;
    background-color: #fff;
    color: #17181c;
}

.form-floating > .form-control::placeholder {
    color: #b3b8bf;
}

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

.form-floating > .form-control:focus {
    border-color: #2f6bff;
    background-color: #fff;
    color: #17181c;
    box-shadow: 0 0 0 3px rgba(47, 107, 255, .12);
}

/* 主按钮：粉紫渐变改纯色主色 */
.btn-gradient {
    --g1: #2f6bff;
    --g2: #2f6bff;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: none;
}

.btn-gradient:hover,
.btn-gradient:focus {
    --g1: #2559dd;
    --g2: #2559dd;
    filter: none;
    transform: none;
    box-shadow: none;
}

.btn-ghost {
    border: 1px solid #e8eaed;
    border-radius: 10px;
    background: #fff;
    color: #4b5563;
}

.btn-ghost:hover {
    border-color: #e8eaed;
    background: #f5f6f8;
    color: #17181c;
}

.form-check {
    color: #4b5563;
}

.form-check-input {
    border: 1px solid #d7dbe0;
    background-color: #fff;
}

.form-check-input:checked {
    border-color: #2f6bff;
    background-color: #2f6bff;
}

/* 自定义勾选框（本主题用的是 appearance:none 那套，不是 bootstrap 的） */
.form-check input[type="checkbox"] {
    border: 2px solid #d7dbe0;
    background: #fff;
    box-shadow: none;
}

.form-check input[type="checkbox"]:hover {
    border-color: #2f6bff;
    box-shadow: none;
}

.form-check input[type="checkbox"]:checked {
    border-color: #2f6bff;
    background: #2f6bff;
    box-shadow: none;
}

.form-check label {
    color: #4b5563;
}

.form-check label:hover {
    color: #2f6bff;
}

.divider {
    color: #8b9098;
}

.divider::before,
.divider::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .1), rgba(0, 0, 0, 0));
}

.text-link {
    color: #2f6bff;
}

.text-link:hover {
    color: #2559dd;
}

/* 验证码图：底座已经给了白底，这里只把描边换成细边 */
.image-code,
.prompt-image-code {
    border: 1px solid #e8eaed;
}
