/* CloudWard theme layer for SSPanel-UIM (tabler base).
   Scope: auth pages get a full-screen wallpaper treatment; everywhere else
   only light brand touches (sky-family primary, brand wordmark). */

/* ---------- Brand tokens / primary ---------- */
:root {
    --cw-indigo: #4F46E5;
    --cw-sky: #0EA5E9;
    --cw-gradient: linear-gradient(135deg, #4F46E5 0%, #0EA5E9 100%);
    --tblr-primary: #4F46E5;
    --tblr-primary-rgb: 79, 70, 229;
}

.btn-primary {
    background-image: var(--cw-gradient);
    background-color: var(--cw-indigo);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(79, 70, 229, .30);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--cw-indigo);
    border-color: transparent;
    filter: brightness(1.06);
}

/* ---------- User-area navbar wordmark ---------- */
.cw-brand-text {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: .02em;
    margin-left: .1rem;
    white-space: nowrap;
}

.cw-brand-sub {
    color: #BAE6FD;
    font-size: .85rem;
    font-weight: 600;
}

/* ---------- Auth pages (login / register): full-screen wallpaper ---------- */
/* Wallpaper file: /theme/cloudward/assets/wallpaper.jpg
   (container: /app/public/theme/cloudward/assets/wallpaper.jpg) */
body.border-top-wide {
    background-color: #0B1220;
    background-image: url("/theme/cloudward/assets/wallpaper.jpg?v=5");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Semi-transparent, readable form panel over the wallpaper */
html[data-bs-theme="light"] body.border-top-wide .page-center .card {
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-radius: 1rem;
    box-shadow: 0 18px 44px rgba(2, 12, 27, .35);
}

html[data-bs-theme="dark"] body.border-top-wide .page-center .card {
    background: rgba(15, 23, 42, .85);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-radius: 1rem;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
}

/* Brand hero above the auth card (white over photo for readability) */
.cw-hero {
    margin-top: .9rem;
}

.cw-hero-title {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-shadow: 0 2px 14px rgba(2, 12, 27, .55);
}

.cw-hero-sub {
    color: #7DD3FC;
    font-size: 1.3rem;
    font-weight: 700;
}

.cw-hero-tag {
    color: rgba(255, 255, 255, .88);
    font-size: .95rem;
    margin-top: .3rem;
    margin-bottom: 0;
    text-shadow: 0 1px 10px rgba(2, 12, 27, .55);
}

/* The line under the auth card ("还没有账户？点击注册" etc.) sits on the photo */
body.border-top-wide .page-center > .container-tight > .text-center.text-secondary {
    color: rgba(255, 255, 255, .92) !important;
    text-shadow: 0 1px 8px rgba(2, 12, 27, .6);
}

body.border-top-wide .page-center > .container-tight > .text-center.text-secondary a {
    color: #7DD3FC;
    font-weight: 600;
}
