/* ====================================
   FastAid Auth Shell
   Shared styling for login, register, and admin login
   ==================================== */

:root {
    --auth-ink: #111827;
    --auth-muted: #5b6472;
    --auth-surface: rgba(255, 255, 255, 0.88);
    --auth-border: rgba(15, 23, 42, 0.08);
    --auth-shadow: 0 32px 90px rgba(15, 23, 42, 0.22);
}

body.auth-page {
    background:
        radial-gradient(circle at top left, rgba(255, 138, 56, 0.34), transparent 33%),
        radial-gradient(circle at top right, rgba(43, 108, 176, 0.24), transparent 28%),
        linear-gradient(135deg, #f3f5fb 0%, #eef2f8 55%, #f7efe7 100%);
}

body.auth-page .landing-container {
    width: min(1180px, calc(100vw - 32px));
    display: grid;
    grid-template-columns: 420px 460px;
    gap: 0;
    width: 880px;
    max-width: calc(100vw - 48px);
    margin: 24px auto;
    align-items: stretch;
    align-items: center;
    background: #fff;
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.68);
}
    min-height: 760px;

body.auth-page .welcome-panel {
    background: linear-gradient(135deg, #ff6d1a 0%, #ff4f00 48%, #ff8b43 100%);
    /* prefer viewport relative but cap to desktop-friendly height */
    min-height: min(76vh, 760px);
    padding: 0;
    min-height: 760px;
}

body.auth-page .hero-shell {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: min(72vh, 760px);
    padding: 24px;
}

body.auth-page .left-pane-photo-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 390px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content !important;
    min-width: 180px;
    max-width: 100%;
    display: block;
    margin: 18px auto 0;
    padding-inline: 40px;
    display: block;
    width: min(100%, 560px);
    height: auto;
body.auth-page .left-pane-photo-wrap { padding: 0; }
body.auth-page .left-pane-photo { width: 100%; height: 100%; max-width: none; display: block; margin: 0; object-fit: cover; }
    object-fit: contain;
    object-position: center center;
    filter: drop-shadow(0 24px 48px rgba(15, 23, 42, 0.22));
}

/* Mobile / small screen adjustments */
@media (max-width: 900px) {
    body.auth-page .landing-container {
        grid-template-columns: 1fr; /* stack */
        width: calc(100vw - 24px);
    }

    body.auth-page .welcome-panel {
        display: none; /* hide heavy left pane on small screens */
    }

    body.auth-page .form-panel {
        padding: 28px 18px;
        min-height: 60vh;
    }

    body.auth-page .brand-header {
        text-align: center;
    }

    body.auth-page .brand-logo {
        width: 96px; /* slightly smaller on mobile */
    }

    body.auth-page .left-pane-photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
}

/* Very small phones */
@media (max-width: 420px) {
    body.auth-page .brand-logo { width: 80px; }
    body.auth-page .form-container { max-width: 100%; padding: 0; }
}

body.auth-page .feature-card {
    min-height: 180px;
    padding: 18px;
}

body.auth-page .feature-card.feature-card-large {
    min-height: 260px;
}

body.auth-page .feature-card .feature-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.auth-page .feature-card .feature-title i {
    color: #fff5e5;
}

body.auth-page .bar-chart {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    align-items: end;
    height: 140px;
    margin-top: 10px;
}

body.auth-page .bar-chart span {
    display: block;
    border-radius: 16px 16px 8px 8px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.55));
    box-shadow: inset 0 -12px 24px rgba(255,255,255,0.16);
}

body.auth-page .bar-chart span:nth-child(1) { height: 52%; }
body.auth-page .bar-chart span:nth-child(2) { height: 84%; }
body.auth-page .bar-chart span:nth-child(3) { height: 68%; }
body.auth-page .bar-chart span:nth-child(4) { height: 100%; }

body.auth-page .metric-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    min-height: 150px;
}

body.auth-page .metric-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.78;
}

body.auth-page .metric-value {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

body.auth-page .metric-sub {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.86);
}

body.auth-page .form-panel {
    padding: 36px 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.92));
    max-height: none;
    min-height: min(72vh, 760px);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.auth-page .form-container {
    max-width: 420px;
    padding: 0;
    animation: none;
}

/* Ensure the form container is centered and constrained to avoid stretched controls */
body.auth-page .form-panel .form-container {
    margin: 0 auto;
    max-width: 420px;
}

/* Prevent submit buttons in auth forms from becoming full-bleed across the viewport */
body.auth-page .form-panel .submit-btn {
    width: auto !important;
    max-width: 420px;
    display: block;
    margin: 12px auto 0;
}

body.auth-page .brand-header {
    border-bottom: none;
    margin-bottom: 22px;
    padding-bottom: 0;
}

body.auth-page .brand-logo {
    width: 120px;
    height: auto;
    margin-bottom: 14px;
}

body.auth-page .brand-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2rem, 3vw, 2.6rem);
    letter-spacing: -0.03em;
}

body.auth-page .brand-subtitle {
    color: var(--auth-muted);
    font-size: 1rem;
    line-height: 1.7;
}

body.auth-page .auth-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--auth-muted);
    font-size: 0.9rem;
}

body.auth-page .alert {
    border-radius: 16px;
    border: none;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

body.auth-page .form-tabs {
    background: rgba(15, 23, 42, 0.04);
    padding: 6px;
    border-radius: 18px;
    margin-bottom: 22px;
}

body.auth-page .tab-button {
    border-radius: 14px;
    font-weight: 700;
}

body.auth-page .tab-button.active {
    background: linear-gradient(135deg, rgba(240, 139, 58, 0.12), rgba(43, 108, 176, 0.12));
    color: var(--auth-ink);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

body.auth-page .form-label {
    color: var(--auth-ink);
    font-size: 0.93rem;
}

body.auth-page .form-control {
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255,255,255,0.98);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

body.auth-page .form-control:focus {
    border-color: rgba(240, 139, 58, 0.55);
    box-shadow: 0 0 0 5px rgba(240, 139, 58, 0.12);
}

body.auth-page .input-icon,
body.auth-page .toggle-password {
    color: #8d97a6;
}

body.auth-page .role-option,
body.auth-page .login-role-option {
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255,255,255,0.96);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

body.auth-page .role-option.active,
body.auth-page .login-role-option.active,
body.auth-page .role-option.selected {
    border-color: rgba(240, 139, 58, 0.45);
    background: linear-gradient(180deg, rgba(240,139,58,0.09), rgba(43,108,176,0.05));
    box-shadow: 0 16px 30px rgba(240, 139, 58, 0.12);
}

body.auth-page .login-role-option {
    padding: 12px 14px;
}

body.auth-page .login-role-option i {
    background: linear-gradient(135deg, rgba(240, 139, 58, 0.12), rgba(43, 108, 176, 0.1));
    color: #d97706;
}

body.auth-page .submit-btn {
    border-radius: 18px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #f08b3a 0%, #fb6f1f 48%, #ff8c42 100%);
    box-shadow: 0 18px 32px rgba(240, 139, 58, 0.24);
}

body.auth-page .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 36px rgba(240, 139, 58, 0.28);
}

body.auth-page .admin-login-link {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

body.auth-page .admin-login-link .admin-link {
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(43,108,176,0.96), rgba(15,23,42,0.96));
    box-shadow: 0 16px 32px rgba(43, 108, 176, 0.18);
}

body.auth-page.admin-auth .welcome-panel {
    background: linear-gradient(160deg, #111827 0%, #1f2937 42%, #f08b3a 100%);
}

body.auth-page.admin-auth .hero-chip i,
body.auth-page.admin-auth .feature-card .feature-title i {
    color: #ffd8a3;
}

body.auth-page.admin-auth .metric-card {
    background: rgba(15, 23, 42, 0.22);
}

body.auth-page.admin-auth .metric-sub {
    color: rgba(255, 255, 255, 0.78);
}

body.auth-page.admin-auth .brand-title {
    color: #111827;
}

body.auth-page.admin-auth .admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(240, 139, 58, 0.12);
    color: #d97706;
    letter-spacing: 0.12em;
    font-size: 0.76rem;
    font-weight: 800;
}

body.auth-page.admin-auth .admin-info-box,
body.auth-page.admin-auth .reset-box {
    border: none;
    background: linear-gradient(135deg, rgba(15,23,42,0.05), rgba(240,139,58,0.06));
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

body.auth-page.admin-auth .reset-btn {
    border-radius: 12px;
    background: linear-gradient(135deg, #f08b3a 0%, #d97706 100%);
}

body.auth-page {
    background:
        linear-gradient(135deg, #ff7a1a 0%, #ff5a00 33%, #f3efe9 33%, #eef2f8 100%);
}

body.auth-page .landing-container {
    width: min(1180px, calc(100vw - 32px));
    border-radius: 28px;
    grid-template-columns: minmax(0, 1.13fr) minmax(390px, 0.87fr);
    background: #fff;
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.68);
}

body.auth-page .welcome-panel {
    background: linear-gradient(135deg, #ff6d1a 0%, #ff4f00 48%, #ff8b43 100%);
    min-height: 760px;
    padding: 0;
}

body.auth-page .welcome-panel::before {
    opacity: 0.3;
    background-image:
        linear-gradient(145deg, rgba(255,255,255,0.18), transparent 52%),
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1), transparent 35%),
        radial-gradient(circle at 80% 30%, rgba(255,255,255,0.1), transparent 32%);
}

body.auth-page .welcome-panel::after {
    opacity: 0.18;
}

body.auth-page .welcome-panel .hero-shell {
    position: relative;
    padding: 28px;
    overflow: hidden;
}

body.auth-page .auth-hero-brand {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

body.auth-page .brand-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

body.auth-page .brand-chip img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

body.auth-page .brand-chip-dreamss img {
    border-radius: 4px;
}

body.auth-page .auth-collage {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 704px;
    border-radius: 24px;
}

body.auth-page .collage-emblem {
    position: absolute;
    top: 70px;
    left: 88px;
    width: min(54%, 440px);
    max-width: 440px;
    opacity: 0.9;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.16));
    z-index: 0;
    pointer-events: none;
}

body.auth-page .collage-emblem-dreamss {
    top: 70px;
    left: 88px;
}

body.auth-page .floating-card {
    position: absolute;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 40px rgba(14, 23, 39, 0.16);
    color: #1f2937;
    overflow: hidden;
    z-index: 2;
}

body.auth-page .collage-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 24px;
    transform: none;
}

body.auth-page .collage-card-training {
    top: 30px;
    left: 118px;
    width: 344px;
    min-height: 126px;
    transform: rotate(-3deg);
}

body.auth-page .collage-card-storage {
    top: 170px;
    left: 28px;
    width: 318px;
    min-height: 226px;
    transform: rotate(-2deg);
}

body.auth-page .collage-card-upload {
    left: 180px;
    bottom: 26px;
    width: 306px;
    min-height: 172px;
    transform: rotate(3deg);
}

body.auth-page .collage-card .card-heading {
    color: #5f6672;
}

body.auth-page .card-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-size: 0.88rem;
    font-weight: 600;
}

body.auth-page .heading-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
}

body.auth-page .heading-icon.violet { background: rgba(99, 102, 241, 0.14); color: #6366f1; }
body.auth-page .heading-icon.orange { background: rgba(245, 158, 11, 0.14); color: #d97706; }
body.auth-page .heading-icon.green { background: rgba(16, 185, 129, 0.14); color: #059669; }

body.auth-page .header-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

body.auth-page .brand-logo-secondary {
    width: 58px;
    height: 58px;
}

body.auth-page .bars-strip {
    align-items: end;
    justify-content: space-between;
    height: 100%;
    margin: 0;
}

body.auth-page .compact-bars {
    gap: 10px;
}

body.auth-page .bar-pill {
    width: 54px;
    border-radius: 18px;
    display: block;
}

body.auth-page .bar-pill.tall { height: 100px; }
body.auth-page .bar-pill.medium { height: 72px; }
body.auth-page .bar-pill.short { height: 58px; }
body.auth-page .bar-pill.blue { background: linear-gradient(180deg, #8790ef, #4f6fe5); }
body.auth-page .bar-pill.amber { background: linear-gradient(180deg, #eac89a, #d98b33); }
body.auth-page .bar-pill.violet { background: linear-gradient(180deg, #7d82f3, #6672e8); }

body.auth-page .storage-lines {
    display: grid;
    gap: 4px;
    color: #1f2937;
    font-size: 1rem;
    line-height: 1.35;
}

body.auth-page .storage-lines strong {
    font-size: 1.08rem;
}

body.auth-page .storage-note {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(249, 115, 22, 0.06);
    border: 1px solid rgba(249, 115, 22, 0.16);
    color: #8b5a2b;
    font-size: 0.86rem;
    line-height: 1.45;
}

body.auth-page .upload-flow-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

body.auth-page .flow-step {
    min-height: 84px;
    padding: 14px 12px;
    border-radius: 16px;
    border: 1px solid rgba(249, 115, 22, 0.12);
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.75);
}

body.auth-page .flow-step strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.5rem;
    color: #111827;
}

body.auth-page .flow-step span {
    font-size: 0.8rem;
    color: #6b7280;
}

body.auth-page .mini-strip,
body.auth-page .label-row,
body.auth-page .month-row,
body.auth-page .tag-row {
    display: flex;
    align-items: center;
}

body.auth-page .mini-strip {
    gap: 12px;
    justify-content: center;
    margin-top: 2px;
    flex-wrap: wrap;
}

body.auth-page .mini-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f2f4f7;
    font-size: 0.72rem;
    color: #6b7280;
}

body.auth-page .mini-pill.green {
    background: rgba(16, 185, 129, 0.14);
    color: #059669;
}

body.auth-page .mini-pill.amber {
    background: rgba(245, 158, 11, 0.16);
    color: #d97706;
}

body.auth-page .label-row {
    gap: 8px;
    color: #111827;
    font-weight: 500;
    font-size: 0.94rem;
}

body.auth-page .label-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

body.auth-page .label-dot.green { background: #0ecb81; }
body.auth-page .label-dot.violet { background: #8b5cf6; }
body.auth-page .label-dot.orange { background: #fb923c; }

body.auth-page .trend-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    font-size: 0.72rem;
    font-weight: 600;
}

body.auth-page .trend-chip.orange {
    background: rgba(251, 146, 60, 0.12);
    color: #ea580c;
}

body.auth-page .form-panel {
    min-height: 760px;
    padding: 40px 36px;
    background: #fff;
}

body.auth-page .brand-header {
    text-align: center;
    margin-bottom: 20px;
}

body.auth-page .brand-logo {
    width: 68px;
    margin-bottom: 10px;
}

body.auth-page .brand-title {
    color: #111827;
    font-size: 2rem;
    margin-bottom: 10px;
}

body.auth-page .brand-subtitle,
body.auth-page .auth-note {
    color: #6b7280;
}

body.auth-page .auth-note {
    justify-content: center;
    margin-top: 10px;
}

body.auth-page .form-tabs {
    display: none;
}

body.auth-page .form-group {
    margin-bottom: 16px;
}

body.auth-page .form-label {
    display: none;
}

body.auth-page .input-group {
    border-radius: 18px;
}

body.auth-page .input-icon {
    left: 18px;
}

body.auth-page .form-control {
    height: 48px;
    border-radius: 999px;
    background: #f4f5f7;
    border: 1px solid #f4f5f7;
    box-shadow: none;
    padding-left: 46px;
}

body.auth-page .form-control:focus {
    border-color: rgba(240, 139, 58, 0.58);
    box-shadow: 0 0 0 4px rgba(240, 139, 58, 0.12);
}

body.auth-page .role-selection,
body.auth-page .login-role-selection {
    gap: 10px;
}

/* Desktop role buttons layout */
body.auth-page .login-role-selection {
    display: flex;
    gap: 12px;
    align-items: center;
}

body.auth-page .login-role-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(15,23,42,0.06);
}

body.auth-page .login-role-option .role-meta { display:flex; flex-direction:column; align-items:flex-start; }
body.auth-page .login-role-option .role-name { font-weight:700; font-size:0.95rem; color:var(--auth-ink); }
body.auth-page .login-role-option .role-sub { font-size:0.8rem; color:var(--auth-muted); margin-top:2px; }

body.auth-page .role-option,
body.auth-page .login-role-option {
    border-radius: 18px;
}

body.auth-page .role-option {
    padding: 16px 10px;
}

body.auth-page .login-role-option {
    flex: 1;
    justify-content: flex-start;
}

body.auth-page .submit-btn {
    height: 48px;
    margin-top: 6px;
    border-radius: 999px;
    background: #f97316;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
}

body.auth-page .submit-btn:hover {
    box-shadow: 0 16px 28px rgba(249, 115, 22, 0.26);
}

body.auth-page .switch-copy {
    margin: 18px 0 0;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

body.auth-page .switch-link {
    border: 0;
    background: transparent;
    color: #f97316;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

body.auth-page .register-switch {
    margin-top: 16px;
}

body.auth-page .admin-login-link {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #eceff3;
}

body.auth-page.admin-auth .welcome-panel {
    background: linear-gradient(135deg, #ff6518 0%, #ff4f00 45%, #ff9a5c 100%);
}

body.auth-page.admin-auth .brand-title {
    color: #111827;
}

body.auth-page.admin-auth .hero-shell {
    padding-left: 18px;
}

@media (max-width: 1100px) {
    body.auth-page .landing-container {
        grid-template-columns: 1fr;
        width: min(760px, calc(100vw - 24px));
    }

    body.auth-page .welcome-panel,
    body.auth-page .form-panel {
        min-height: auto;
    }

    body.auth-page .auth-collage {
        min-height: 640px;
    }
}

@media (max-width: 768px) {
    body.auth-page {
        padding: 12px;
    }

    body.auth-page .landing-container {
        border-radius: 22px;
        width: 100%;
    }

    body.auth-page .welcome-panel .hero-shell,
    body.auth-page .form-panel {
        padding: 18px;
    }

    body.auth-page .left-pane-photo-wrap {
        min-height: 520px;
    }

    body.auth-page .brand-logo-secondary {
        width: 50px;
        height: 50px;
    }

    body.auth-page .role-selection {
        grid-template-columns: 1fr;
    }

    body.auth-page .login-role-selection {
        flex-direction: column;
    }
}

@media (max-width: 1100px) {
    body.auth-page .landing-container {
        grid-template-columns: 1fr;
        max-width: 760px;
    }

    body.auth-page .welcome-panel,
    body.auth-page .form-panel {
        min-height: auto;
    }

    body.auth-page .hero-visual {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    body.auth-page {
        padding: 14px;
    }

    body.auth-page .landing-container {
        border-radius: 22px;
    }

    body.auth-page .welcome-panel .hero-shell,
    body.auth-page .form-panel {
        padding: 24px;
    }

    body.auth-page .hero-visual {
        grid-template-columns: 1fr;
    }

    body.auth-page .form-tabs,
    body.auth-page .login-role-selection,
    body.auth-page .role-selection {
        gap: 10px;
    }

    body.auth-page .role-selection {
        grid-template-columns: 1fr;
    }

    body.auth-page .login-role-selection {
        flex-direction: column;
    }

    body.auth-page .brand-logo {
        width: 76px;
    }
}

body.auth-page .welcome-panel {
    padding: 0;
    overflow: hidden;
}

body.auth-page .welcome-panel .hero-shell {
    padding: 0;
    min-height: 100%;
}

body.auth-page .left-pane-photo-wrap {
    min-height: 100%;
    width: 100%;
    height: 100%;
    background: transparent;
}

body.auth-page .left-pane-photo {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center center;
    filter: none;
}

body.auth-page .landing-container {
    overflow: hidden;
}

/* Final enforcement: keep the auth card centered, gap-free, and fully filled */
body.auth-page .landing-container {
    display: grid;
    grid-template-columns: 450px 430px;
    gap: 0;
    width: 900px;
    max-width: calc(100vw - 48px);
    margin: 24px auto;
    box-sizing: border-box;
    align-items: stretch;
}

body.auth-page .welcome-panel {
    border-top-left-radius: 28px;
    border-bottom-left-radius: 28px;
    height: 100%;
    min-height: 760px;
    padding: 0;
}

body.auth-page .form-panel {
    border-top-right-radius: 28px;
    border-bottom-right-radius: 28px;
    height: 100%;
    min-height: 760px;
    width: 100%;
    max-width: none;
    justify-self: stretch;
}

body.auth-page .left-pane-photo-wrap {
    padding: 0;
    overflow: hidden;
}

body.auth-page .left-pane-photo {
    width: calc(100% + 90px);
    height: calc(100% + 90px);
    max-width: none;
    max-height: none;
    object-fit: cover;
    transform: scale(1.08);
    transform-origin: center center;
    margin: 0;
}

body.auth-page .form-panel .form-container {
    max-width: 390px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.auth-page .form-panel .submit-btn {
    display: block;
    width: fit-content !important;
    min-width: 180px;
    margin: 18px auto 0;
    padding-inline: 40px;
    align-self: center;
}

body.auth-page .switch-copy,
body.auth-page .register-switch,
body.auth-page .admin-login-link,
body.auth-page .forgot-password {
    text-align: center;
    width: 100%;
}

body.auth-page .admin-login-link .admin-link {
    margin: 0 auto;
}

body.auth-page .admin-login-link {
    display: flex;
    justify-content: center;
}

body.auth-page .switch-copy {
    width: 100%;
}

body.auth-page .switch-copy,
body.auth-page .register-switch {
    margin-left: auto;
    margin-right: auto;
}

body.auth-page .switch-copy .switch-link {
    display: inline-block;
}

body.auth-page .left-pane-photo-wrap::before,
body.auth-page .left-pane-photo-wrap::after {
    content: none;
}

/* Clean auth page: hide decorative/duplicated UI that clutters the login view */
body.auth-page .bars-strip,
body.auth-page .bar-pill,
body.auth-page .bar-chart,
body.auth-page .compact-bars,
body.auth-page .floating-card,
body.auth-page .collage-card,
body.auth-page .collage-emblem,
body.auth-page .auth-hero-brand,
body.auth-page .auth-collage,
body.auth-page .hero-visual,
body.auth-page .hero-chip,
body.auth-page .mini-strip {
    display: none !important;
}

/* Ensure welcome panel stays as background and form is on top */
body.auth-page .welcome-panel { z-index: 0; }
body.auth-page .form-panel { z-index: 5; }

/* Prevent left thumbnail from overlapping the card */
body.auth-page .left-pane-photo-wrap { overflow: hidden; }

/* Hide any stray floating admin/login pills that appear on the page */
.auth-page .admin-floating, .auth-page .login-floating { display: none !important; }

/* Tidy submit button: ensure single, centered action */
body.auth-page .form-panel .submit-btn { display: inline-block; margin: 18px auto 0; }

/* Strong: hide any sibling elements injected outside the landing container on auth pages */
body.auth-page > :not(.landing-container) {
    display: none !important;
}

/* Hide any oversized horizontal bars inside the landing container */
.landing-container [class*="bar"],
.landing-container [class*="stripe"],
.landing-container [class*="pill"] {
    max-width: 100% !important;
}

/* If there are absolutely positioned long bars, hide them */
.landing-container [style*="position:absolute"][style*="width: 100%"],
.landing-container [style*="position: absolute"][style*="left: 0%"],
.landing-container [style*="position:absolute"][style*="right: 0"] {
    display: none !important;
}

