:root {
    --hianime-bg: #202031;
    --hianime-panel: #2b2a3c;
    --hianime-panel-soft: #3a3951;
    --hianime-accent: #ffbade;
    --hianime-text: #ffffff;
    --hianime-muted: #9d9dbb;
}

html,
body {
    background: var(--hianime-bg);
    color: var(--hianime-text);
    font-family: Poppins, Arial, sans-serif;
}

body a {
    color: var(--hianime-accent);
}

body a:hover,
body a:focus {
    color: #ffffff;
}

#sidebar_menu,
#header .header-menu,
.header-group,
.block_area,
.pre-pagination,
.film_list-wrap .flw-item,
.anis-content {
    background-color: var(--hianime-panel);
}

.block_area-header .cat-heading,
.bah-heading .cat-heading {
    color: var(--hianime-text);
}

.btn-primary,
.btn-outline-primary:hover,
.pagination .page-item.active .page-link {
    background-color: var(--hianime-accent);
    border-color: var(--hianime-accent);
    color: #202031;
}

.btn-outline-primary {
    border-color: var(--hianime-accent);
    color: var(--hianime-accent);
}

.film-detail .film-name a:hover,
.nav-link:hover,
.hst-item:hover .name {
    color: var(--hianime-accent);
}

#header #logo img {
    mix-blend-mode: screen;
}

.badge,
.tick-item,
.film-poster-ahref {
    border-radius: 4px;
}

#search .form-control,
.preform .form-control,
.form-control {
    background: var(--hianime-panel-soft);
    border-color: transparent;
    color: var(--hianime-text);
}

#search .form-control::placeholder,
.form-control::placeholder {
    color: var(--hianime-muted);
}

footer,
#footer {
    background: #1a1929;
}

.auth-page-shell { min-height:100vh; display:grid; place-items:center; padding:40px 18px; background:var(--hianime-bg); }
.auth-card { width:min(100%, 470px); padding:34px; border:1px solid rgba(255,255,255,.06); border-radius:16px; background:var(--hianime-panel); box-shadow:0 18px 50px rgba(0,0,0,.28); }
.auth-brand { display:block; text-align:center; margin-bottom:22px; }
.auth-brand img { width:auto; max-width:190px; height:42px; object-fit:contain; }
.auth-card h1 { margin:0; text-align:center; color:var(--hianime-text); font-size:25px; }
.auth-subtitle { margin:8px 0 24px; text-align:center; color:var(--hianime-muted); font-size:13px; }
.auth-form { display:grid; gap:9px; }
.auth-form label { color:#e6e4ed; font-size:12px; font-weight:700; }
.auth-form input { width:100%; min-height:44px; padding:0 13px; border:1px solid rgba(255,255,255,.08); border-radius:7px; background:var(--hianime-panel-soft); color:#fff; outline:none; }
.auth-form input:focus { border-color:var(--hianime-accent); box-shadow:0 0 0 3px rgba(255,186,222,.14); }
.auth-submit { width:100%; min-height:44px; margin-top:10px; border-radius:7px; font-weight:700; }
.auth-errors { margin:0 0 18px; padding:11px 13px; border:1px solid rgba(255,118,147,.32); border-radius:7px; background:rgba(255,118,147,.1); color:#ffd8df; font-size:12px; }
.auth-errors p { margin:0; }
.auth-errors p + p { margin-top:5px; }
.auth-switch { margin:22px 0 0; text-align:center; color:var(--hianime-muted); font-size:13px; }
.auth-back { display:block; margin-top:18px; text-align:center; color:var(--hianime-muted)!important; font-size:12px; }
@media (max-width:520px) { .auth-card { padding:26px 20px; } }
