/* 1. Reset / Global */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
    --rahmah: #00a69c;
    --rahmah-dark: #087c75;
    --ink: #111827;
    --muted: #667085;
    --line: #d8e1e7;
    --soft: #f6fbfb;
    --warm: #d48a47;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: "Tajawal", sans-serif;
    direction: rtl;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(0, 166, 156, 0.08), transparent 34%),
        linear-gradient(315deg, rgba(212, 138, 71, 0.08), transparent 28%),
        #ffffff;
    overflow-x: hidden;
}

button,
input {
    font: inherit;
}

/* 2. Layout */
.auth-layout {
    display: grid;
    grid-template-columns: minmax(420px, 52vw) minmax(380px, 1fr);
    min-height: 100vh;
    padding: 18px;
    direction: ltr;
    gap: 18px;
}

.login-visual {
    position: relative;
    grid-column: 1;
    min-height: calc(100vh - 36px);
    overflow: hidden;
    border-radius: 22px;
    padding: clamp(22px, 3vw, 34px);
    background:
        radial-gradient(circle at 16% 18%, rgba(148, 197, 188, 0.2), transparent 30%),
        radial-gradient(circle at 84% 78%, rgba(212, 138, 71, 0.16), transparent 28%),
        linear-gradient(145deg, #12343a 0%, #28545a 48%, #edf4f2 100%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.login-visual::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 18px;
    pointer-events: none;
}

.login-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 58px 58px;
    opacity: 0.52;
    mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.58), transparent 72%);
    pointer-events: none;
}

.dashboard-showcase {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    direction: rtl;
    color: #ffffff;
    pointer-events: none;
    user-select: none;
}

.showcase-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    opacity: 0.8;
    pointer-events: none;
}

.showcase-orb-one {
    width: 210px;
    height: 210px;
    top: 7%;
    right: 8%;
    background: rgba(151, 198, 190, 0.16);
    animation: driftOrb 8s ease-in-out infinite;
}

.showcase-orb-two {
    width: 170px;
    height: 170px;
    left: 8%;
    bottom: 10%;
    background: rgba(212, 138, 71, 0.13);
    animation: driftOrb 9s ease-in-out -2s infinite;
}

.showcase-topbar,
.showcase-panel,
.metric-card,
.showcase-insight-strip {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.06));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 20px 44px rgba(3, 19, 23, 0.18);
}

.showcase-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    border-radius: 22px;
    animation: panelRise 0.65s ease both;
}

.showcase-topbar::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 42%);
    pointer-events: none;
}

.showcase-topbar strong {
    display: block;
    margin-top: 6px;
    font-size: clamp(1.14rem, 1.9vw, 1.75rem);
    line-height: 1.3;
}

.showcase-kicker {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.showcase-status {
    position: relative;
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 999px;
    color: #244047;
    background: #d9ebe7;
    font-size: 0.82rem;
    font-weight: 900;
}

.showcase-status::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 8px;
    border-radius: 999px;
    background: #7aa59d;
    box-shadow: 0 0 0 6px rgba(122, 165, 157, 0.14);
}

.showcase-preview-label {
    align-self: flex-start;
    margin-top: -4px;
    padding: 6px 12px;
    border: 1px dashed rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.74);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    animation: panelRise 0.68s ease 0.04s both;
}

.showcase-preview-label::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 14px;
    transform: perspective(1300px) rotateX(0.8deg) rotateY(-1.6deg);
    transform-origin: center;
}

.metric-card {
    position: relative;
    min-height: 104px;
    padding: 14px 16px;
    border-radius: 20px;
    overflow: hidden;
    animation: panelRise 0.7s ease both, metricFloat 7s ease-in-out 1.4s infinite;
}

.metric-card:nth-child(2) {
    animation-delay: 0.08s, 2s;
}

.metric-card:nth-child(3) {
    animation-delay: 0.16s, 2.6s;
}

.metric-card::after {
    content: "";
    position: absolute;
    inset: -45% auto -45% -45%;
    width: 42%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: rotate(18deg) translateX(-130%);
    animation: glassSweep 6.5s ease-in-out infinite;
    pointer-events: none;
}

.metric-card span,
.metric-card small {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

.metric-card strong {
    display: block;
    margin: 8px 0 4px;
    font-size: clamp(1.75rem, 3.2vw, 3.35rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.showcase-count {
    font-variant-numeric: tabular-nums;
}

.showcase-count.is-counting {
    animation: numberTick 0.34s ease both;
}

.metric-card-main {
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.24), transparent 30%),
        linear-gradient(135deg, rgba(86, 139, 137, 0.78), rgba(59, 103, 108, 0.34));
}

.showcase-body {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 14px;
    transform: perspective(1300px) rotateX(0.6deg) rotateY(-1deg);
    transform-origin: center;
}

.showcase-panel {
    position: relative;
    min-height: 198px;
    padding: 14px;
    border-radius: 22px;
    overflow: hidden;
    animation: panelRise 0.78s ease 0.08s both;
}

.showcase-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.1), transparent 44%);
    transform: translateX(-100%);
    animation: panelScan 8s ease-in-out infinite;
    pointer-events: none;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: #ffffff;
    font-weight: 900;
}

.panel-chip {
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    color: #244047;
    background: rgba(219, 235, 231, 0.92);
    font-size: 0.78rem;
    font-weight: 900;
}

.mini-table {
    display: grid;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 110px 58px;
    align-items: center;
    gap: 12px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.11);
    font-size: 0.76rem;
    font-weight: 700;
    animation: rowRefresh 8s ease-in-out infinite;
}

.mini-table .table-row:nth-child(2) { animation-delay: 0.3s; }
.mini-table .table-row:nth-child(3) { animation-delay: 0.55s; }
.mini-table .table-row:nth-child(4) { animation-delay: 0.8s; }
.mini-table .table-row:nth-child(5) { animation-delay: 1.05s; }

.table-head {
    min-height: auto;
    color: rgba(255, 255, 255, 0.56);
    background: transparent;
    font-size: 0.76rem;
    animation: none;
}

.pill {
    display: inline-flex;
    justify-content: center;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    white-space: nowrap;
}

.pill.done {
    color: #244047;
    background: #d9ebe7;
}

.pill.active {
    color: #7c3f10;
    background: #ffe0b9;
}

.pill.muted {
    color: #334155;
    background: rgba(255, 255, 255, 0.74);
}

.chart-panel {
    display: flex;
    flex-direction: column;
}

.bar-chart {
    flex: 1;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 9px;
    padding: 8px 8px 2px;
    animation: chartTilt 7s ease-in-out infinite;
}

.bar-chart i {
    position: relative;
    width: 100%;
    height: var(--h);
    min-height: 28px;
    border-radius: 999px 999px 10px 10px;
    background: linear-gradient(180deg, #dcebe7, #7aa59d);
    box-shadow: 0 12px 24px rgba(86, 139, 137, 0.18);
    transform-origin: bottom;
    overflow: hidden;
    animation: growBar 0.9s cubic-bezier(0.22, 1, 0.36, 1) both, barGlow 4.8s ease-in-out infinite;
}

.bar-chart i::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 45%);
    transform: translateY(100%);
    animation: barLight 3.8s ease-in-out infinite;
}

.bar-chart i:nth-child(2) { animation-delay: 0.08s; }
.bar-chart i:nth-child(3) { animation-delay: 0.16s; }
.bar-chart i:nth-child(4) { animation-delay: 0.24s; }
.bar-chart i:nth-child(5) { animation-delay: 0.32s; }
.bar-chart i:nth-child(6) { animation-delay: 0.4s; }

.chart-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.86rem;
    font-weight: 800;
}

.chart-footer strong {
    color: #ffffff;
    font-size: 1.35rem;
}

.showcase-insight-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.76rem;
    font-weight: 900;
    animation: panelRise 0.82s ease 0.18s both;
}

.showcase-insight-strip span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.showcase-insight-strip span::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 9px;
    border-radius: 999px;
    background: rgba(217, 235, 231, 0.82);
    box-shadow: 0 0 0 4px rgba(217, 235, 231, 0.08);
    vertical-align: middle;
}

.login-wrapper {
    position: relative;
    grid-column: 2;
    direction: rtl;
    width: 100%;
    min-height: calc(100vh - 36px);
    padding: clamp(34px, 5vw, 74px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(216, 225, 231, 0.8);
    border-radius: 22px;
    background:
        radial-gradient(circle at 90% 12%, rgba(0, 166, 156, 0.11), transparent 30%),
        radial-gradient(circle at 12% 92%, rgba(212, 138, 71, 0.1), transparent 28%),
        rgba(255, 255, 255, 0.88);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.login-container {
    position: relative;
    width: min(100%, 430px);
    padding: 32px;
    border: 1px solid rgba(216, 225, 231, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: right;
    animation: fadeIn 0.55s ease-out;
}

.login-container::before {
    content: "";
    position: absolute;
    inset-inline: 32px;
    top: 0;
    height: 4px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--warm), var(--rahmah));
}

.login-container form {
    width: 100%;
}

/* 3. Components */
.logo-top {
    display: block;
    width: 154px;
    height: auto;
    margin: 0 auto 12px;
}

.login-subtitle {
    width: min(100%, 430px);
    margin: 0 auto 26px;
    color: #526064;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.8;
    text-align: center;
}

.login-title {
    max-width: 100%;
    margin: 0 0 26px;
    color: var(--ink);
    font-size: clamp(1.22rem, 1.45vw, 1.45rem);
    font-weight: 800;
    line-height: 1.35;
    text-align: right;
    white-space: nowrap;
}

.login-container label {
    display: block;
    margin: 0 0 8px;
    color: #1f2937;
    font-size: 0.93rem;
    font-weight: 700;
}

.login-container input {
    display: block;
    width: 100%;
    min-height: 50px;
    margin: 0 0 22px;
    padding: 12px 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    background: #fbfdfd;
    font-size: 0.96rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login-container input::placeholder {
    color: transparent;
}

.login-container input:hover {
    background: #ffffff;
    border-color: #b8c7cf;
}

.login-container input:focus {
    border-color: var(--rahmah);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 166, 156, 0.13);
}

.login-container input.error {
    border-color: #b42318;
    box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.08);
}

#email,
#password {
    direction: ltr;
    text-align: left;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-left: 46px;
}

.eye-on {
    position: absolute;
    left: 15px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.52;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.eye-on:hover {
    opacity: 0.82;
    transform: translateY(-50%) scale(1.04);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: -6px 0 24px;
}

.login-container .remember-login {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #475467;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    white-space: nowrap;
}

.login-container .remember-login input {
    width: 16px;
    height: 16px;
    min-height: auto;
    margin: 0;
    accent-color: var(--rahmah);
    cursor: pointer;
}

.forgot-password-link {
    color: var(--rahmah-dark);
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password-link:hover {
    color: #0f766e;
    text-decoration: underline;
}

#loginError {
    display: none;
    margin: -8px 0 16px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #9f1f17;
    background: #fff3f1;
    font-size: 0.92rem;
    line-height: 1.6;
}

.login-btn {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rahmah), #087c75);
    font-size: 1.02rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(0, 166, 156, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.login-btn:hover {
    box-shadow: 0 18px 38px rgba(0, 166, 156, 0.28);
    filter: saturate(1.08);
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 12px 24px rgba(0, 166, 156, 0.2);
}

.login-icon {
    width: 21px;
    height: 21px;
}

.footer-copy {
    width: min(100%, 430px);
    margin: 14px auto 0;
    padding: 0 12px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.6;
    text-align: center;
    z-index: 10;
}

.login-contact-links {
    position: relative;
    z-index: 10;
    width: min(100%, 430px);
    margin: 18px auto 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    direction: rtl;
}

.login-contact-links a {
    min-width: 104px;
    min-height: 42px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(0, 166, 156, 0.16);
    border-radius: 999px;
    color: #087c75;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 800;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-contact-links a:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 166, 156, 0.34);
    box-shadow: 0 18px 36px rgba(0, 166, 156, 0.1);
}

.login-contact-links svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: currentColor;
}

.clock-container {
    display: none;
}

/* 4. Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes panelRise {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes growBar {
    from {
        transform: scaleY(0.22);
        opacity: 0.35;
    }

    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

@keyframes metricFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes glassSweep {
    0%, 42% {
        transform: rotate(18deg) translateX(-140%);
        opacity: 0;
    }

    52% {
        opacity: 1;
    }

    68%, 100% {
        transform: rotate(18deg) translateX(380%);
        opacity: 0;
    }
}

@keyframes numberTick {
    from {
        transform: translateY(5px) scale(0.96);
        opacity: 0.72;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes panelScan {
    0%, 54% {
        transform: translateX(-120%);
        opacity: 0;
    }

    64% {
        opacity: 1;
    }

    82%, 100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes rowRefresh {
    0%, 64%, 100% {
        transform: translateX(0);
        opacity: 1;
    }

    72% {
        transform: translateX(14px);
        opacity: 0;
    }

    82% {
        transform: translateX(-10px);
        opacity: 0;
    }

    92% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes chartTilt {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes barGlow {
    0%, 100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.16);
    }
}

@keyframes barLight {
    0%, 42% {
        transform: translateY(110%);
        opacity: 0;
    }

    56% {
        opacity: 0.8;
    }

    76%, 100% {
        transform: translateY(-110%);
        opacity: 0;
    }
}

@keyframes driftOrb {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(18px, -14px, 0) scale(1.08);
    }
}

/* 5. Media Queries */
@media (max-width: 980px) {
    .auth-layout {
        grid-template-columns: minmax(320px, 44vw) minmax(360px, 1fr);
        padding: 12px;
        gap: 12px;
    }

    .login-visual,
    .login-wrapper {
        min-height: calc(100vh - 24px);
        border-radius: 8px;
    }

    .showcase-grid,
    .showcase-body {
        grid-template-columns: 1fr;
    }

    .metric-card {
        min-height: 112px;
    }

    .showcase-panel {
        min-height: 220px;
    }

    .login-wrapper {
        padding: 30px;
    }

    .login-container {
        padding: 28px;
    }
}

@media (max-height: 820px) and (min-width: 761px) {
    .auth-layout {
        padding: 12px;
        gap: 12px;
    }

    .login-visual,
    .login-wrapper {
        min-height: calc(100vh - 24px);
    }

    .login-visual {
        padding: 18px;
    }

    .dashboard-showcase {
        gap: 9px;
    }

    .showcase-preview-label,
    .showcase-insight-strip {
        display: none;
    }

    .showcase-panel {
        min-height: 174px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .showcase-orb,
    .showcase-topbar,
    .showcase-preview-label,
    .metric-card,
    .metric-card::after,
    .showcase-panel,
    .showcase-panel::after,
    .table-row,
    .bar-chart,
    .bar-chart i,
    .bar-chart i::after,
    .showcase-insight-strip,
    .showcase-count.is-counting {
        animation: none !important;
    }
}

@media (max-width: 760px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        overflow-x: clip;
        overscroll-behavior-x: none;
        touch-action: pan-y;
    }

    .auth-layout {
        display: block;
        width: 100%;
        max-width: 100vw;
        min-height: 100dvh;
        padding: 0;
        overflow-x: hidden;
        overflow-x: clip;
        touch-action: pan-y;
        background:
            radial-gradient(circle at 50% -8%, rgba(0, 166, 156, 0.2), transparent 34%),
            radial-gradient(circle at 12% 16%, rgba(212, 138, 71, 0.12), transparent 24%),
            linear-gradient(180deg, #f4fbfa 0%, #ffffff 44%, #fffaf5 100%);
    }

    .login-visual {
        display: none;
    }

    .login-visual::before {
        content: none;
    }

    .showcase-status,
    .showcase-kicker,
    .showcase-preview-label,
    .metric-card small,
    .table-head {
        display: none;
    }

    .showcase-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        transform: none;
    }

    .metric-card {
        min-height: 54px;
        padding: 8px 9px;
        border-radius: 14px;
    }

    .metric-card span {
        font-size: 0.58rem;
    }

    .metric-card strong {
        margin: 4px 0 0;
        font-size: 1.02rem;
    }

    .showcase-body {
        grid-template-columns: 1fr;
        gap: 7px;
        transform: none;
    }

    .showcase-panel {
        min-height: auto;
        padding: 9px;
        border-radius: 16px;
    }

    .chart-panel,
    .showcase-insight-strip {
        display: none;
    }

    .table-row {
        grid-template-columns: 1fr 70px 34px;
        min-height: 27px;
        padding: 0 9px;
        font-size: 0.6rem;
    }

    .mini-table .table-row:nth-of-type(n+4) {
        display: none;
    }

    .login-wrapper {
        width: 100%;
        max-width: 100vw;
        min-height: 100dvh;
        margin-top: 0;
        padding: 30px 18px 56px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        justify-content: flex-start;
        overflow-x: hidden;
        overflow-x: clip;
        touch-action: pan-y;
    }

    .login-wrapper::before {
        content: "";
        position: absolute;
        inset: -118px -72px auto;
        height: 245px;
        border-radius: 0 0 50% 50%;
        background:
            radial-gradient(circle at 58% 54%, rgba(255, 255, 255, 0.28), transparent 24%),
            linear-gradient(135deg, rgba(9, 91, 88, 0.96), rgba(0, 166, 156, 0.68) 55%, rgba(229, 244, 241, 0.54));
        box-shadow: 0 22px 54px rgba(8, 124, 117, 0.14);
        pointer-events: none;
    }

    .login-wrapper::after {
        content: "";
        position: absolute;
        top: 20px;
        left: 50%;
        width: 145px;
        height: 82px;
        border: 1px solid rgba(255, 255, 255, 0.52);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 16px 36px rgba(8, 124, 117, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transform: translateX(-50%);
        pointer-events: none;
    }

    .login-container {
        width: min(100%, 430px);
        max-width: 100%;
        padding: 27px 20px;
        border-color: rgba(216, 225, 231, 0.76);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
    }

    .logo-top,
    .login-subtitle,
    .login-container,
    .footer-copy {
        position: relative;
        z-index: 1;
    }

    .logo-top {
        width: 126px;
        margin-top: 2px;
        margin-bottom: 52px;
        filter: drop-shadow(0 14px 24px rgba(8, 124, 117, 0.12));
    }

    .login-subtitle {
        width: min(100%, 430px);
        margin-top: 0;
        margin-bottom: 24px;
        padding: 10px 14px;
        border: 1px solid rgba(255, 255, 255, 0.62);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.44);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 14px 32px rgba(8, 124, 117, 0.08);
        backdrop-filter: blur(14px) saturate(1.08);
        -webkit-backdrop-filter: blur(14px) saturate(1.08);
        color: #405154;
        font-size: 0.82rem;
        line-height: 1.7;
    }

    .login-title {
        text-align: center;
        white-space: normal;
    }

    .footer-copy {
        width: min(100%, 430px);
        margin-top: 12px;
        padding: 0 10px;
    }

    .login-contact-links {
        width: min(100%, 430px);
        margin-top: 14px;
        gap: 8px;
    }

    .login-contact-links a {
        min-width: 0;
        flex: 1;
        min-height: 40px;
        padding: 0 8px;
        font-size: 0.76rem;
    }

    .login-options {
        gap: 10px;
    }

    .login-container .remember-login,
    .forgot-password-link {
        font-size: 0.84rem;
    }

    .login-container input,
    .login-btn {
        font-size: 16px;
    }
}

@media (max-width: 420px) {
    .login-wrapper {
        padding: 26px 14px 52px;
    }

    .login-container {
        padding: 24px 16px;
    }

    .login-title {
        margin-bottom: 24px;
        font-size: clamp(1.02rem, 6.1vw, 1.18rem);
    }

    .login-container input,
    .login-btn {
        min-height: 50px;
    }

    .login-contact-links {
        gap: 7px;
    }

    .login-contact-links a {
        font-size: 0;
    }

    .login-contact-links svg {
        width: 20px;
        height: 20px;
    }
}
