/* =========================================
   ZYLOR — PROFESSIONAL DESIGN SYSTEM
   Modern • Clean • Responsive
   ========================================= */

:root {
    --primary: #fe2c55;
    --primary-hover: #e51f47;
    --primary-soft: #fff0f3;

    --bg: #f7f8fc;
    --surface: #ffffff;
    --surface-soft: #f9fafb;

    --text: #161823;
    --text-secondary: #737583;
    --text-muted: #9699a6;

    --border: #e9eaf0;
    --success: #16875d;
    --danger: #d92d42;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;

    --shadow-sm: 0 2px 8px rgba(22, 24, 35, .04);
    --shadow-md: 0 8px 28px rgba(22, 24, 35, .07);
    --shadow-lg: 0 16px 48px rgba(22, 24, 35, .10);

    --content-width: 1100px;
}

/* RESET */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img,
video {
    max-width: 100%;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color .18s ease;
}

a:hover {
    color: var(--primary-hover);
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: .6;
}

::selection {
    background: #ffd9e1;
    color: #161823;
}

/* ACCESSIBILITY */

:focus-visible {
    outline: 3px solid rgba(254, 44, 85, .3);
    outline-offset: 3px;
}

/* TOP NAVIGATION */

.top {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
    min-height: 72px;
    padding: 12px 5%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.brand {
    flex-shrink: 0;
    color: var(--text);
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1;
}

.brand span {
    color: var(--primary);
}

.top nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.top nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 9px 14px;

    border-radius: var(--radius-sm);
    color: #565968;

    font-size: 14px;
    font-weight: 650;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.top nav a:hover {
    background: #f4f4f8;
    color: var(--text);
}

.top nav a.pill,
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;
    border: 0;
    border-radius: 999px;

    background: var(--primary);
    color: #fff;

    font-weight: 750;
    box-shadow: 0 4px 12px rgba(254, 44, 85, .16);
}

.top nav a.pill:hover,
.pill:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-1px);
}

/* MAIN CONTENT */

main {
    width: 100%;
    min-height: calc(100vh - 150px);
    margin: 0 auto;
}

.container,
.page-container {
    width: min(100% - 32px, var(--content-width));
    margin: 0 auto;
    padding: 30px 0 48px;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    color: var(--text);
    line-height: 1.25;
    letter-spacing: -.45px;
}

h1 {
    font-size: clamp(24px, 3.6vw, 34px);
    font-weight: 850;
    letter-spacing: -1px;
}

h2 {
    font-size: clamp(19px, 2.8vw, 25px);
    font-weight: 800;
}

h3 {
    font-size: 17px;
    font-weight: 750;
}

p {
    margin-top: 0;
}

.muted {
    color: var(--text-secondary);
}

/* CARDS */

.card {
    min-width: 0;
    padding: 20px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);
}

.card h1:last-child,
.card h2:last-child,
.card p:last-child {
    margin-bottom: 0;
}

.card + .card {
    margin-top: 18px;
}

/* FORMS */

form {
    min-width: 0;
}

label {
    display: block;
    margin: 16px 0 7px;

    color: #343642;
    font-size: 14px;
    font-weight: 700;
}

.field,
input.field,
textarea.field,
select.field {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;

    border: 1px solid #dedfe7;
    border-radius: var(--radius-sm);

    background: #fff;
    color: var(--text);

    font-size: 14px;
    line-height: 1.45;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.field::placeholder {
    color: #a1a3af;
}

.field:hover {
    border-color: #c7c9d4;
}

.field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(254, 44, 85, .09);
}

textarea.field {
    min-height: 110px;
    resize: vertical;
}

input[type="file"].field {
    padding: 10px;
    cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--primary);
}

/* BUTTONS */

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 44px;
    padding: 11px 19px;

    border: 1px solid transparent;
    border-radius: var(--radius-sm);

    background: var(--primary);
    color: #fff;

    font-size: 13px;
    font-weight: 750;
    line-height: 1.2;

    transition:
        background .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

button:hover,
.button:hover {
    background: var(--primary-hover);
    box-shadow: 0 5px 14px rgba(254, 44, 85, .16);
}

button:active,
.button:active {
    transform: scale(.98);
}

button:focus-visible,
.button:focus-visible {
    outline: 3px solid rgba(254, 44, 85, .3);
    outline-offset: 3px;
}

button.secondary,
.button.secondary {
    border-color: var(--border);
    background: #fff;
    color: var(--text);
}

button.secondary:hover,
.button.secondary:hover {
    background: #f5f5f8;
}

button.danger,
.button.danger {
    background: var(--danger);
}

/* ALERTS */

.alert {
    margin: 16px 0;
    padding: 13px 15px;

    border: 1px solid #f4c8d0;
    border-radius: var(--radius-sm);

    background: #fff1f3;
    color: #a51d35;

    font-size: 14px;
    overflow-wrap: anywhere;
}

.alert.success {
    border-color: #b8e4d1;
    background: #edfaf4;
    color: #116b49;
}

/* EMPTY STATES */

.empty {
    padding: 55px 24px;
    text-align: center;
}

.empty h2 {
    margin-bottom: 10px;
}

.empty p {
    color: var(--text-secondary);
}

/* GENERAL TABLES */

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

th {
    background: var(--surface-soft);
    color: #525563;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
}

td {
    color: #414350;
    font-size: 14px;
}

tr:last-child td {
    border-bottom: 0;
}

/* STATUS LABELS */

.badge,
.status {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;

    border-radius: 999px;
    background: #f1f2f6;
    color: #565968;

    font-size: 12px;
    font-weight: 750;
}

.badge.success,
.status.published {
    background: #e8f8f0;
    color: #13734d;
}

.badge.danger,
.status.removed {
    background: #fff0f2;
    color: #ba203b;
}

/* PROFILE */

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 26px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.profile-avatar {
    width: 82px;
    height: 82px;
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);

    font-size: 32px;
    font-weight: 850;
}

.profile-details {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* ADMIN DASHBOARD */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.stat-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 650;
}

.stat-card .stat-value {
    margin-top: 8px;
    color: var(--text);
    font-size: 30px;
    font-weight: 850;
}

/* FOOTER */

footer {
    padding: 24px 16px;
    color: var(--text-secondary);
    font-size: 13px;
    text-align: center;
}

/* SCROLLBARS */

* {
    scrollbar-width: thin;
    scrollbar-color: #c8cad4 transparent;
}

*::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

*::-webkit-scrollbar-thumb {
    border-radius: 20px;
    background: #c8cad4;
}

/* RESPONSIVE TABLETS */

@media (max-width: 850px) {
    .top {
        min-height: 64px;
        padding: 10px 18px;
        gap: 12px;
    }

    .brand {
        font-size: 27px;
    }

    .top nav {
        gap: 3px;
    }

    .top nav a {
        padding: 8px 10px;
        font-size: 13px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* RESPONSIVE PHONES */

@media (max-width: 600px) {
    body {
        font-size: 14px;
    }

    .top {
        padding: 10px 12px;
        flex-wrap: wrap;
    }

    .brand {
        font-size: 25px;
    }

    .top nav {
        flex: 1;
        justify-content: flex-end;
    }

    .top nav a {
        min-height: 36px;
        padding: 7px 9px;
        font-size: 12px;
    }

    .top nav a.pill {
        padding: 8px 12px;
    }

    .container,
    .page-container {
        width: calc(100% - 22px);
        padding: 20px 0 32px;
    }

    .card {
        padding: 18px;
        border-radius: var(--radius-md);
    }

    h1 {
        font-size: 24px;
    }

    .field,
    input.field,
    textarea.field,
    select.field {
        font-size: 16px;
    }

    button,
    .button {
        min-height: 44px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .profile-header {
        align-items: flex-start;
        gap: 14px;
        padding: 18px;
    }

    .profile-avatar {
        width: 62px;
        height: 62px;
        font-size: 25px;
    }

    table {
        min-width: 580px;
    }

    .table-responsive {
        overflow-x: auto;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: #fff;
    }

    footer {
        padding-bottom: 90px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
/* ==================================
   ZYLOR AUTH — LOGIN & REGISTER
   ================================== */

body:has(form input[name="identity"]),
body:has(form input[name="username"][minlength="3"]) {
    background:
        radial-gradient(ellipse at top, #25203e 0%, transparent 55%),
        #10101a;
}

body:has(form input[name="identity"]) main,
body:has(form input[name="username"][minlength="3"]) main {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px 45px;
}

body:has(form input[name="identity"]) .card,
body:has(form input[name="username"][minlength="3"]) .card {
    width: 100%;
    max-width: 460px !important;
    margin: 0 auto !important;
    padding: 34px;
    border: 1px solid #34304a;
    border-radius: 24px;
    background: rgba(25, 25, 39, .96);
    box-shadow: 0 25px 70px rgba(0, 0, 0, .3);
    color: #fff;
}

body:has(form input[name="identity"]) .card h1,
body:has(form input[name="username"][minlength="3"]) .card h1 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 32px;
    font-weight: 850;
    letter-spacing: -1px;
}

body:has(form input[name="identity"]) .card p,
body:has(form input[name="username"][minlength="3"]) .card p {
    color: #b9b8ca;
}

body:has(form input[name="identity"]) label,
body:has(form input[name="username"][minlength="3"]) label {
    margin: 19px 0 8px;
    color: #e3e1ef;
    font-size: 13px;
    font-weight: 700;
}

body:has(form input[name="identity"]) .field,
body:has(form input[name="username"][minlength="3"]) .field {
    min-height: 50px;
    border: 1px solid #3c3a52;
    border-radius: 12px;
    background: #171724;
    color: #fff;
}

body:has(form input[name="identity"]) .field:focus,
body:has(form input[name="username"][minlength="3"]) .field:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, .14);
}

body:has(form input[name="identity"]) form > button,
body:has(form input[name="username"][minlength="3"]) form > button {
    width: 100%;
    min-height: 50px;
    margin-top: 24px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(124, 58, 237, .2);
}

body:has(form input[name="identity"]) form > button:hover,
body:has(form input[name="username"][minlength="3"]) form > button:hover {
    background: linear-gradient(135deg, #6d28d9, #9333ea);
    transform: translateY(-1px);
}

body:has(form input[name="identity"]) .card a,
body:has(form input[name="username"][minlength="3"]) .card a {
    color: #c084fc;
    font-weight: 700;
}

body:has(form input[name="identity"]) .alert,
body:has(form input[name="username"][minlength="3"]) .alert {
    border-color: #713044;
    border-radius: 12px;
    background: #351b29;
    color: #ffb5c4;
}

@media (max-width: 600px) {
    body:has(form input[name="identity"]) main,
    body:has(form input[name="username"][minlength="3"]) main {
        padding: 24px 13px 40px;
    }

    body:has(form input[name="identity"]) .card,
    body:has(form input[name="username"][minlength="3"]) .card {
        padding: 24px 19px;
        border-radius: 20px;
    }

    body:has(form input[name="identity"]) .card h1,
    body:has(form input[name="username"][minlength="3"]) .card h1 {
        font-size: 28px;
    }
}
/* =====================================
   ZYLOR — PROFESSIONAL UPLOAD PAGE
   ===================================== */

body:has(form input[type="file"][name="video"]) {
    background:
        radial-gradient(ellipse at top, #25203e 0%, transparent 55%),
        #10101a;
}

body:has(form input[type="file"][name="video"]) main {
    min-height: calc(100vh - 72px);
    padding: 32px 15px 100px;
}

body:has(form input[type="file"][name="video"]) .card {
    width: 100%;
    max-width: 580px !important;
    margin: 25px auto !important;
    padding: 30px;
    border: 1px solid #34304a;
    border-radius: 24px;
    background: rgba(25, 25, 39, .97);
    color: #fff;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .28);
}

body:has(form input[type="file"][name="video"]) .card h1 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 30px;
    font-weight: 850;
    letter-spacing: -.8px;
}

body:has(form input[type="file"][name="video"]) .muted {
    color: #aaa8c0;
    font-size: 14px;
    line-height: 1.7;
}

body:has(form input[type="file"][name="video"]) label {
    margin: 22px 0 9px;
    color: #e6e3f2;
    font-size: 13px;
    font-weight: 750;
}

body:has(form input[type="file"][name="video"]) .field {
    width: 100%;
    min-height: 50px;
    padding: 13px;
    border: 1px solid #3b3952;
    border-radius: 12px;
    background: #171724;
    color: #fff;
}

body:has(form input[type="file"][name="video"]) input[type="file"].field {
    min-height: 65px;
    padding: 15px;
    border-style: dashed;
    border-color: #7651a9;
    background: #201b31;
    cursor: pointer;
}

body:has(form input[type="file"][name="video"]) input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 9px 13px;
    border: 0;
    border-radius: 8px;
    background: #3a2b54;
    color: #e9d5ff;
    font-weight: 750;
    cursor: pointer;
}

body:has(form input[type="file"][name="video"]) .field:focus {
    border-color: #a855f7;
    outline: none;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, .13);
}

body:has(form input[type="file"][name="video"]) textarea.field {
    min-height: 125px;
    resize: vertical;
}

body:has(form input[type="file"][name="video"]) form > button {
    width: 100%;
    min-height: 52px;
    margin-top: 25px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    font-size: 15px;
    font-weight: 850;
    box-shadow: 0 8px 25px rgba(124, 58, 237, .2);
}

body:has(form input[type="file"][name="video"]) form > button:hover {
    background: linear-gradient(135deg, #6d28d9, #9333ea);
    transform: translateY(-1px);
}

body:has(form input[type="file"][name="video"]) .alert {
    padding: 13px 15px;
    border: 1px solid #713044;
    border-radius: 12px;
    background: #351b29;
    color: #ffb5c4;
}

@media (max-width: 600px) {
    body:has(form input[type="file"][name="video"]) main {
        padding: 20px 12px 100px;
    }

    body:has(form input[type="file"][name="video"]) .card {
        padding: 23px 18px;
        border-radius: 20px;
    }

    body:has(form input[type="file"][name="video"]) .card h1 {
        font-size: 27px;
    }
}

/* Zylor mobile vertical swipe compatibility */
@media (max-width: 600px) {
  html, body { min-height: 100%; overflow-x: hidden; }
  body { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  video { touch-action: pan-y; }
}

/* Remove blue touch highlight from video */
.video-player {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
}

.video-player:focus,
.video-player:active {
    outline: none;
    box-shadow: none;
}
@media (max-width: 768px) {
    body {
        margin: 0 !important;
    }

    .social-wrap,
    .profile-container,
    .profile-page,
    .container {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
}

/* ZYLOR compact typography + persistent whole-site theme */
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] body {
    --bg: #0b0b10;
    --surface: #15151d;
    --surface-soft: #1c1c26;
    --text: #f5f5f7;
    --text-secondary: #aaaab8;
    --text-muted: #858594;
    --border: #2a2a36;
    background: var(--bg) !important;
    color: var(--text) !important;
}
html[data-theme="dark"] .card,
html[data-theme="dark"] .profile-header,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .table-responsive,
html[data-theme="dark"] .display-card,
html[data-theme="dark"] .social-card,
html[data-theme="dark"] .social-wrap,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .modal-content {
    background-color: var(--surface) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] label,
html[data-theme="dark"] th,
html[data-theme="dark"] td,
html[data-theme="dark"] .social-title,
html[data-theme="dark"] .social-row,
html[data-theme="dark"] .display-head,
html[data-theme="dark"] .display-label {
    color: var(--text) !important;
}
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .field {
    background-color: #101017 !important;
    color: #f5f5f7 !important;
    border-color: #343442 !important;
}
html[data-theme="dark"] .top,
html[data-theme="dark"] .zylor-header {
    background: rgba(12,12,18,.97) !important;
    border-color: var(--border) !important;
}
html[data-theme="dark"] .top nav a,
html[data-theme="dark"] a { color: #d8b4fe; }
html[data-theme="dark"] .muted,
html[data-theme="dark"] small { color: var(--text-secondary); }
html[data-theme="dark"] .display-page { background: var(--bg) !important; color: var(--text) !important; }
html[data-theme="dark"] .display-card { background: var(--surface) !important; }
html[data-theme="dark"] .device-help { color: var(--text-secondary) !important; }
html[data-theme="dark"] .display-head a { color: var(--text) !important; }

@media (max-width: 600px) {
    body { font-size: 13px; line-height: 1.5; }
    h1 { font-size: 23px; }
    h2 { font-size: 19px; }
    h3 { font-size: 16px; }
    p, li, .muted { font-size: 13px; }
    .card { padding: 15px; }
    .button, button { font-size: 13px; }
    .profile-header { padding: 15px; }
}


/* FIX: full-width mobile auth pages (login/register) */
html, body { width: 100%; max-width: 100%; }
@media (max-width: 768px) {
  html, body { overflow-x: clip; }
  body:has(form input[name="identity"]),
  body:has(form input[name="username"][minlength="3"]) {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  body:has(form input[name="identity"]) .top,
  body:has(form input[name="username"][minlength="3"]) .top,
  body:has(form input[name="identity"]) .zylor-header,
  body:has(form input[name="username"][minlength="3"]) .zylor-header,
  body:has(form input[name="identity"]) main,
  body:has(form input[name="username"][minlength="3"]) main,
  body:has(form input[name="identity"]) footer,
  body:has(form input[name="username"][minlength="3"]) footer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  body:has(form input[name="identity"]) main,
  body:has(form input[name="username"][minlength="3"]) main {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  body:has(form input[name="identity"]) .card,
  body:has(form input[name="username"][minlength="3"]) .card {
    width: 100% !important;
    max-width: 460px !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* FINAL OVERRIDE v2: match the actual login form even when it does not use input[name="identity"]. */
@media (max-width: 768px) {
  html, body {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body:has(.card form input[type="password"]) {
    margin: 0 !important;
    background: #0b0b10 !important;
    color: #f5f5f7 !important;
  }

  body:has(.card form input[type="password"]) main {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 16px 12px 100px !important;
    box-sizing: border-box !important;
  }

  body:has(.card form input[type="password"]) .container,
  body:has(.card form input[type="password"]) .page-container,
  body:has(.card form input[type="password"]) .auth-container,
  body:has(.card form input[type="password"]) .login-container {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  body:has(.card form input[type="password"]) .card {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 22px 16px !important;
    box-sizing: border-box !important;
    border-radius: 16px !important;
  }

  body:has(.card form input[type="password"]) .card form,
  body:has(.card form input[type="password"]) .card label,
  body:has(.card form input[type="password"]) .card input,
  body:has(.card form input[type="password"]) .card button {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body:has(.card form input[type="password"]) .card input,
  body:has(.card form input[type="password"]) .card input[type="text"],
  body:has(.card form input[type="password"]) .card input[type="email"],
  body:has(.card form input[type="password"]) .card input[type="password"] {
    width: 100% !important;
  }
}
