:root {
    --app-bg: #f2f5fa;
    --app-surface: #ffffff;
    --app-surface-soft: #f8fafc;
    --app-text: #1d2736;
    --app-muted: #7b8795;
    --app-line: #e7edf5;
    --app-blue: #0f56d6;
    --app-blue-dark: #0a43ac;
    --app-blue-soft: #edf4ff;
    --app-green: #31b36b;
    --app-red: #ef5350;
    --app-shadow: 0 18px 40px rgba(31, 46, 79, 0.1);
}

.app-mode {
    padding: 16px 0;
    background: linear-gradient(180deg, #edf2f8 0%, #f6f8fb 100%);
    overflow-x: hidden;
}

.app-mode .sidebar,
.app-mode .topbar {
    display: none;
}

.app-mode .main-content {
    padding: 0;
    gap: 0;
    flex: 1;
}

.app-mode .app-shell {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: calc(100dvh - 32px);
}

.app-mode .phone-shell {
    width: min(100%, 390px);
    min-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    border-radius: 30px;
    overflow: hidden;
    background: var(--app-surface);
    border: 1px solid #e3e9f2;
    box-shadow: 0 24px 60px rgba(27, 41, 68, 0.14);
    position: relative;
}

.app-mode .app-bar {
    height: 94px;
    flex: 0 0 auto;
    padding: 14px 16px 18px;
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, var(--app-blue) 0%, var(--app-blue-dark) 100%);
}

.app-mode .app-bar__title {
    margin: 0;
    text-align: center;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 700;
}

.app-mode .app-bar__action {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.app-mode .screen-body {
    flex: 1 1 auto;
    min-height: calc(100dvh - 126px);
    padding: 18px 14px calc(116px + env(safe-area-inset-bottom));
    background: var(--app-surface-soft);
    border-radius: 28px 28px 0 0;
    margin-top: -10px;
}

.app-mode .screen-stack,
.app-mode .grid,
.app-mode .grid-dashboard,
.app-mode .cards-list,
.app-mode .search-form,
.app-mode .form-grid,
.app-mode .kpi-list {
    display: grid;
    gap: 14px;
}

.app-mode .grid-dashboard,
.app-mode .form-grid--two {
    grid-template-columns: 1fr;
}

.app-mode .panel,
.app-mode .section-card {
    padding: 16px;
    background: var(--app-surface);
    border-radius: 22px;
    border: 1px solid var(--app-line);
    box-shadow: var(--app-shadow);
}

.app-mode .section-title,
.app-mode .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.app-mode .section-title h2,
.app-mode .section-title h3,
.app-mode .section-header h2,
.app-mode .panel h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--app-text);
}

.app-mode .muted,
.app-mode small {
    color: var(--app-muted);
}

.app-mode .dashboard-greeting {
    padding: 2px 2px 16px;
    position: relative;
    z-index: 1;
}

.app-mode .dashboard-greeting__content {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, #1f63e2 0%, #0f56d6 58%, #0a43ac 100%);
    box-shadow: 0 16px 28px rgba(15, 86, 214, 0.24);
}

.app-mode .dashboard-greeting__content::before,
.app-mode .dashboard-greeting__content::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.app-mode .dashboard-greeting__content::before {
    width: 120px;
    height: 120px;
    right: -26px;
    top: -34px;
    background: rgba(255, 255, 255, 0.1);
}

.app-mode .dashboard-greeting__content::after {
    width: 76px;
    height: 76px;
    left: -18px;
    bottom: -24px;
    background: rgba(255, 255, 255, 0.08);
}

.app-mode .dashboard-greeting__badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #dfeaff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.app-mode .dashboard-greeting h2 {
    margin: 0 0 6px;
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.app-mode .dashboard-greeting p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
}

.app-mode .dashboard-greeting__icon {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    position: relative;
    z-index: 1;
}

.app-mode.page-dashboard .screen-body {
    background: linear-gradient(180deg, var(--app-blue) 0 108px, var(--app-surface-soft) 108px);
    padding-top: 16px;
}

.app-mode.page-dashboard .screen-stack {
    margin-top: 0;
}

.app-mode .metric-grid,
.app-mode .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.app-mode .stat-card,
.app-mode .metric-card {
    min-height: 112px;
    padding: 14px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--app-line);
    box-shadow: none;
    display: grid;
    align-content: space-between;
    gap: 8px;
}

.app-mode .stat-card h3,
.app-mode .metric-card span {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--app-blue);
    font-weight: 600;
}

.app-mode .stat-card strong,
.app-mode .metric-card strong {
    margin: 0;
    font-size: 1.28rem;
    line-height: 1.2;
    color: var(--app-text);
}

.app-mode .stat-card.is-danger strong,
.app-mode .report-box.is-danger strong {
    color: var(--app-red);
}

.app-mode .metric-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--app-blue);
    background: var(--app-blue-soft);
}

.app-mode .chart-wrap {
    display: grid;
    gap: 10px;
}

.app-mode .chart-bars {
    min-height: 145px;
    display: flex;
    align-items: end;
    gap: 8px;
}

.app-mode .chart-bar {
    flex: 1;
    display: grid;
    gap: 8px;
    justify-items: center;
}

.app-mode .chart-bar span {
    width: 100%;
    border-radius: 10px 10px 4px 4px;
    background: linear-gradient(180deg, #2979ff 0%, var(--app-blue) 100%);
}

.app-mode .chart-bar small {
    font-size: 0.72rem;
}

.app-mode .action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.app-mode .action-box {
    min-height: 84px;
    padding: 12px 6px;
    border-radius: 16px;
    border: 1px solid var(--app-line);
    background: #fff;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 8px;
    text-align: center;
    font-size: 0.74rem;
    font-weight: 600;
}

.app-mode .action-box i {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--app-blue);
    background: var(--app-blue-soft);
}

.app-mode .search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--app-line);
}

.app-mode .search-box input {
    width: 100%;
    border: 0;
    background: transparent;
    outline: none;
    color: var(--app-text);
}

.app-mode .search-box button {
    border: 0;
    background: transparent;
    color: var(--app-muted);
}

.app-mode .pill-row,
.app-mode .filter-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.app-mode .button,
.app-mode .pill,
.app-mode .filter-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    border: 1px solid var(--app-line);
    background: #fff;
    color: var(--app-text);
    box-shadow: none;
    transform: none;
}

.app-mode .button-primary,
.app-mode .pill.is-active,
.app-mode .filter-row a.button-primary {
    border-color: var(--app-blue);
    background: linear-gradient(180deg, var(--app-blue) 0%, var(--app-blue-dark) 100%);
    color: #fff;
}

.app-mode .cta-button,
.app-mode .button.block {
    width: 100%;
    border-radius: 14px;
    padding: 14px 16px;
}

.app-mode .entity-list {
    display: grid;
}

.app-mode .entity-row,
.app-mode .list-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--app-line);
    background: transparent;
    box-shadow: none;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-radius: 0;
}

.app-mode .cards-list > :last-child,
.app-mode .entity-list > :last-child {
    border-bottom: 0;
}

.app-mode .avatar-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--app-blue);
    background: var(--app-blue-soft);
}

.app-mode .entity-main,
.app-mode .list-card__main {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.app-mode .entity-main strong,
.app-mode .list-card__main strong {
    font-size: 0.96rem;
}

.app-mode .entity-main small,
.app-mode .list-card__main small {
    font-size: 0.79rem;
}

.app-mode .entity-side,
.app-mode .list-card__meta {
    display: grid;
    justify-items: end;
    gap: 6px;
    text-align: right;
}

.app-mode .entity-side strong,
.app-mode .list-card__meta strong {
    font-size: 0.96rem;
}

.app-mode .status-tag,
.app-mode .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
}

.app-mode .badge-open,
.app-mode .status-open {
    background: #fff4dc;
    color: #93691f;
}

.app-mode .badge-overdue,
.app-mode .status-overdue {
    background: #ffe9e8;
    color: #d14b46;
}

.app-mode .badge-paid,
.app-mode .status-paid {
    background: #e8f8ef;
    color: var(--app-green);
}

.app-mode .row-arrow {
    color: var(--app-muted);
    font-size: 0.9rem;
}

.app-mode .profile-card {
    display: grid;
    gap: 16px;
}

.app-mode .profile-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}

.app-mode .profile-head .avatar-circle {
    width: 56px;
    height: 56px;
    font-size: 1.35rem;
}

.app-mode .profile-info strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
}

.app-mode .profile-info span {
    font-size: 0.87rem;
    color: var(--app-text);
}

.app-mode .tabs {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    border-bottom: 1px solid var(--app-line);
}

.app-mode .tabs a {
    position: relative;
    padding: 0 2px 12px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--app-muted);
}

.app-mode .tabs a.is-active {
    color: var(--app-blue);
}

.app-mode .tabs a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    border-radius: 999px;
    background: var(--app-blue);
}

.app-mode .debt-card {
    padding: 18px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(180deg, var(--app-blue) 0%, var(--app-blue-dark) 100%);
    display: grid;
    gap: 12px;
}

.app-mode .debt-card strong {
    font-size: 1.85rem;
}

.app-mode .debt-card small {
    color: rgba(255, 255, 255, 0.84);
}

.app-mode .debt-card__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.app-mode .debt-card__meta {
    text-align: right;
}

.app-mode .debt-card .button {
    background: #fff;
    color: var(--app-blue);
    border-color: rgba(255, 255, 255, 0.4);
}

.app-mode .info-list,
.app-mode .kpi-list {
    display: grid;
    gap: 14px;
}

.app-mode .info-line,
.app-mode .kpi-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.88rem;
}

.app-mode .contact-row,
.app-mode .quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.app-mode .contact-btn,
.app-mode .quick-action {
    padding: 14px 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--app-line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}

.app-mode .contact-btn i,
.app-mode .quick-action i {
    color: var(--app-blue);
}

.app-mode .field {
    display: grid;
    gap: 8px;
}

.app-mode .field label {
    font-size: 0.88rem;
    font-weight: 600;
}

.app-mode .field input,
.app-mode .field select,
.app-mode .field textarea {
    width: 100%;
    padding: 14px 15px;
    border-radius: 14px;
    border: 1px solid #dde5ef;
    background: #fff;
    color: var(--app-text);
    outline: none;
}

.app-mode .field textarea {
    min-height: 110px;
    resize: vertical;
}

.app-mode .field input[type="file"] {
    display: none;
}

.app-mode .upload-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.app-mode .upload-box {
    min-height: 136px;
    padding: 12px 10px;
    border-radius: 16px;
    border: 1px dashed #d9e2ef;
    background: #fff;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 8px;
    text-align: center;
}

.app-mode .upload-box i {
    font-size: 1.55rem;
    color: #bfd3fb;
}

.app-mode .upload-box strong {
    font-size: 0.78rem;
}

.app-mode .upload-box small {
    font-size: 0.7rem;
}

.app-mode .file-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.app-mode .file-chip {
    padding: 8px 10px;
    border-radius: 999px;
    background: var(--app-blue-soft);
    color: var(--app-blue);
    font-size: 0.74rem;
    font-weight: 600;
}

.app-mode .empty-state {
    padding: 20px 14px;
    text-align: center;
    color: var(--app-muted);
    font-size: 0.88rem;
}

.app-mode .report-grid {
    display: grid;
    gap: 14px;
}

.app-mode .report-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.app-mode .report-box {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--app-line);
    background: #fff;
}

.app-mode .report-box span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    color: var(--app-blue);
    font-weight: 600;
}

.app-mode .report-box strong {
    font-size: 1.28rem;
}

.app-mode .report-distribution {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 12px;
}

.app-mode .donut-chart {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: relative;
}

.app-mode .donut-chart::after {
    content: "";
    position: absolute;
    inset: 22px;
    border-radius: 50%;
    background: #fff;
}

.app-mode .legend-list {
    display: grid;
    gap: 10px;
}

.app-mode .legend-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.83rem;
}

.app-mode .legend-item span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.app-mode .line-chart {
    width: 100%;
    height: 170px;
}

.app-mode .line-chart svg {
    width: 100%;
    height: 100%;
}

.app-mode .line-chart path {
    fill: none;
    stroke: var(--app-blue);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-mode .line-chart circle {
    fill: var(--app-blue);
}

.app-mode .mobile-nav {
    display: grid;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: min(100%, 390px);
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    gap: 4px;
    padding: 10px 12px calc(14px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
    border: 1px solid var(--app-line);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -16px 34px rgba(31, 46, 79, 0.16);
    z-index: 40;
}

.app-mode .mobile-nav a {
    display: grid;
    justify-items: center;
    gap: 5px;
    color: var(--app-muted);
    font-size: 0.72rem;
    font-weight: 500;
}

.app-mode .mobile-nav a i {
    font-size: 1.02rem;
}

.app-mode .mobile-nav a.is-active {
    color: var(--app-blue);
    font-weight: 700;
}

.app-mode .mobile-nav__primary {
    width: 52px;
    height: 52px;
    margin: -18px auto 0;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--app-blue) 0%, var(--app-blue-dark) 100%);
    color: #fff !important;
    display: grid !important;
    place-items: center !important;
    box-shadow: 0 12px 24px rgba(15, 86, 214, 0.28);
}

.guest-mode .login-screen {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 34px 24px;
    background:
        radial-gradient(circle at 15% 20%, rgba(15, 86, 214, 0.18), transparent 28%),
        radial-gradient(circle at 85% 18%, rgba(44, 127, 255, 0.14), transparent 26%),
        linear-gradient(180deg, #eef3ff 0%, #f7f9fc 52%, #f4f7fb 100%);
}

.guest-mode .login-scene {
    width: min(1120px, 100%);
    position: relative;
}

.guest-mode .login-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(4px);
    animation: loginFloat 10s ease-in-out infinite;
}

.guest-mode .login-orb--one {
    width: 190px;
    height: 190px;
    left: -70px;
    top: -40px;
    background: radial-gradient(circle, rgba(15, 86, 214, 0.22), rgba(15, 86, 214, 0));
}

.guest-mode .login-orb--two {
    width: 240px;
    height: 240px;
    right: -80px;
    bottom: -20px;
    background: radial-gradient(circle, rgba(58, 136, 255, 0.18), rgba(58, 136, 255, 0));
    animation-duration: 12s;
}

.guest-mode .login-orb--three {
    width: 120px;
    height: 120px;
    right: 34%;
    top: 16%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0));
    animation-duration: 8s;
}

.guest-mode .login-card--advanced {
    width: 100%;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 26px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.guest-mode .login-hero--advanced {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    padding: 42px 46px;
    border-radius: 34px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 24%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.08), transparent 26%),
        linear-gradient(165deg, #2868e6 0%, #1458d4 52%, #0a43ac 100%);
    box-shadow: 0 34px 70px rgba(21, 74, 179, 0.24);
    animation: fadeUp 600ms ease both;
}

.guest-mode .login-hero--advanced::before {
    content: "";
    position: absolute;
    inset: auto -40px -46px auto;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
}

.guest-mode .login-hero--advanced h1 {
    max-width: 560px;
    margin: 16px 0 14px;
    font-size: clamp(3.1rem, 5vw, 4.9rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.guest-mode .login-hero--advanced p {
    max-width: 470px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.03rem;
    line-height: 1.55;
}

.guest-mode .login-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.guest-mode .login-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.guest-mode .login-highlight {
    padding: 18px 18px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
}

.guest-mode .login-highlight strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

.guest-mode .login-highlight span {
    display: block;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.88rem;
    line-height: 1.45;
}

.guest-mode .login-floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 34px rgba(18, 60, 148, 0.18);
    animation: loginFloatCard 9s ease-in-out infinite;
}

.guest-mode .login-floating-card i {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
}

.guest-mode .login-floating-card strong,
.guest-mode .login-floating-card span {
    display: block;
}

.guest-mode .login-floating-card strong {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.guest-mode .login-floating-card span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.76rem;
}

.guest-mode .login-floating-card--one {
    right: 24px;
    top: 36px;
}

.guest-mode .login-floating-card--two {
    right: 36px;
    bottom: 26px;
    animation-duration: 11s;
}

.guest-mode .login-panel {
    min-height: 420px;
    align-content: center;
    gap: 18px;
    padding: 28px 26px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.74);
    box-shadow: 0 28px 60px rgba(28, 43, 77, 0.12);
    backdrop-filter: blur(22px);
    animation: fadeUp 760ms ease both;
}

.guest-mode .login-panel__header {
    display: grid;
    gap: 8px;
}

.guest-mode .login-panel__eyebrow {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--app-blue);
    font-weight: 700;
}

.guest-mode .login-panel__header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--app-text);
    letter-spacing: -0.03em;
}

.guest-mode .login-panel__header p {
    margin: 0;
    color: var(--app-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.guest-mode .input-shell {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border-radius: 18px;
    border: 1px solid #d7e3f8;
    background: rgba(255, 255, 255, 0.92);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.guest-mode .input-shell i {
    color: #7e9ad5;
    font-size: 1rem;
}

.guest-mode .input-shell input {
    height: 72px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--app-text);
}

.guest-mode .input-shell:focus-within {
    transform: translateY(-1px);
    border-color: #a9c4ff;
    background: #fff;
    box-shadow: 0 0 0 6px rgba(15, 86, 214, 0.08);
}

.guest-mode .login-submit {
    width: 100%;
    justify-content: center;
    border-radius: 18px;
    padding: 18px 20px;
    font-size: 1rem;
    box-shadow: 0 18px 36px rgba(15, 86, 214, 0.22);
}

.guest-mode .login-submit i {
    transition: transform 180ms ease;
}

.guest-mode .login-submit:hover i {
    transform: translateX(4px);
}

@keyframes loginFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -14px, 0);
    }
}

@keyframes loginFloatCard {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -10px, 0);
    }
}

@media (min-width: 992px) {
    .app-mode {
        padding: 0;
        background: linear-gradient(180deg, #eff4fb 0%, #f7f9fc 100%);
    }

    .app-mode .sidebar,
    .app-mode .topbar {
        display: flex;
    }

    .app-mode .app-shell {
        justify-content: stretch;
        align-items: stretch;
        width: 100%;
        max-width: none;
        min-height: 100dvh;
        margin: 0;
    }

    .app-mode .main-content {
        display: flex;
        flex-direction: column;
        gap: 22px;
        flex: 1;
        min-width: 0;
        padding: 28px;
    }

    .app-mode .phone-shell {
        flex: 1;
        width: 100%;
        min-height: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }

    .app-mode .app-bar,
    .app-mode .mobile-nav {
        display: none;
    }

    .app-mode .screen-body {
        min-height: 0;
        margin-top: 0;
        padding: 0 0 24px;
        background: transparent;
        border-radius: 0;
    }

    .app-mode .screen-stack {
        gap: 22px;
    }

    .app-mode.page-dashboard .screen-stack {
        margin-top: 0;
        display: grid;
        grid-template-columns: 1.6fr 1fr;
        grid-template-areas:
            "greeting greeting"
            "summary summary"
            "chart actions";
        align-items: start;
    }

    .app-mode.page-dashboard .screen-stack > :nth-child(1) {
        grid-area: greeting;
    }

    .app-mode.page-dashboard .screen-stack > :nth-child(2) {
        grid-area: summary;
    }

    .app-mode.page-dashboard .screen-stack > :nth-child(3) {
        grid-area: chart;
    }

    .app-mode.page-dashboard .screen-stack > :nth-child(4) {
        grid-area: actions;
    }

    .app-mode .dashboard-greeting {
        padding: 0;
    }

    .app-mode .dashboard-greeting__content {
        padding: 24px 26px;
        border-radius: 28px;
        background: linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
        box-shadow: var(--app-shadow);
        border: 1px solid var(--app-line);
    }

    .app-mode .dashboard-greeting__content::before {
        background: rgba(15, 86, 214, 0.08);
    }

    .app-mode .dashboard-greeting__content::after {
        background: rgba(15, 86, 214, 0.05);
    }

    .app-mode .dashboard-greeting__badge {
        color: var(--app-blue);
        background: var(--app-blue-soft);
        border-color: #dbe7ff;
    }

    .app-mode .dashboard-greeting h2 {
        color: var(--app-text);
        font-size: 2.1rem;
    }

    .app-mode .dashboard-greeting p {
        color: var(--app-muted);
    }

    .app-mode .dashboard-greeting__icon {
        width: 64px;
        height: 64px;
        border-radius: 20px;
        color: var(--app-blue);
        background: var(--app-blue-soft);
        border-color: #dce7fb;
        box-shadow: none;
    }

    .app-mode .section-card,
    .app-mode .panel {
        padding: 24px;
        border-radius: 28px;
    }

    .app-mode .metric-grid,
    .app-mode .stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .app-mode .metric-card,
    .app-mode .stat-card {
        min-height: 150px;
    }

    .app-mode .chart-bars {
        min-height: 220px;
    }

    .app-mode .chart-bar span {
        border-radius: 14px 14px 6px 6px;
    }

    .app-mode .action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-mode .action-box {
        min-height: 112px;
        font-size: 0.82rem;
    }

    .app-mode .entity-row,
    .app-mode .list-card {
        padding: 18px 0;
    }

    .app-mode .entity-main strong,
    .app-mode .list-card__main strong {
        font-size: 1.02rem;
    }

    .app-mode .entity-main small,
    .app-mode .list-card__main small {
        font-size: 0.83rem;
    }

    .app-mode .report-distribution {
        grid-template-columns: 160px 1fr;
    }

    .app-mode .donut-chart {
        width: 160px;
        height: 160px;
    }

    .app-mode .donut-chart::after {
        inset: 30px;
    }

    .app-mode.page-cliente_detalhes .screen-stack {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        grid-template-areas:
            "profile profile"
            "debt summary"
            "contact summary"
            "charges history";
        align-items: start;
    }

    .app-mode.page-cliente_detalhes .screen-stack > :nth-child(1) {
        grid-area: profile;
    }

    .app-mode.page-cliente_detalhes .screen-stack > :nth-child(2) {
        grid-area: debt;
    }

    .app-mode.page-cliente_detalhes .screen-stack > :nth-child(3) {
        grid-area: summary;
    }

    .app-mode.page-cliente_detalhes .screen-stack > :nth-child(4) {
        grid-area: contact;
    }

    .app-mode.page-cliente_detalhes .screen-stack > :nth-child(5) {
        grid-area: charges;
    }

    .app-mode.page-cliente_detalhes .screen-stack > :nth-child(6) {
        grid-area: history;
    }

    .app-mode.page-relatorios .screen-stack {
        display: grid;
        grid-template-columns: 1.05fr 0.95fr;
        grid-template-areas:
            "metrics distribution"
            "line inadimplencia";
        align-items: start;
    }

    .app-mode.page-relatorios .screen-stack > :nth-child(1) {
        grid-area: metrics;
    }

    .app-mode.page-relatorios .screen-stack > :nth-child(2) {
        grid-area: distribution;
    }

    .app-mode.page-relatorios .screen-stack > :nth-child(3) {
        grid-area: line;
    }

    .app-mode.page-relatorios .screen-stack > :nth-child(4) {
        grid-area: inadimplencia;
    }

    .app-mode.page-cobranca_form .section-card,
    .app-mode.page-cliente_form .section-card,
    .app-mode.page-pagamento_form .screen-stack {
        max-width: 900px;
    }

    .app-mode.page-pagamento_form .screen-stack {
        margin: 0 auto;
    }

    .app-mode.page-cobranca_form .section-card,
    .app-mode.page-cliente_form .section-card {
        margin: 0 auto;
    }
}

@media (max-width: 560px) {
    .app-mode {
        padding: 0;
    }

    .app-mode .app-shell {
        min-height: 100dvh;
    }

    .app-mode .phone-shell {
        width: 100%;
        min-height: 100dvh;
        border-radius: 0;
        border: 0;
        box-shadow: none;
    }

    .app-mode .app-bar {
        position: sticky;
        top: 0;
        z-index: 24;
    }

    .app-mode .screen-body {
        min-height: calc(100dvh - 94px);
        padding-bottom: calc(118px + env(safe-area-inset-bottom));
    }

    .app-mode .mobile-nav {
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        border-left: 0;
        border-right: 0;
        border-radius: 22px 22px 0 0;
        box-shadow: 0 -12px 28px rgba(31, 46, 79, 0.14);
    }
}

@media (max-width: 980px) {
    .guest-mode .login-card--advanced {
        grid-template-columns: 1fr;
    }

    .guest-mode .login-panel {
        min-height: auto;
    }

    .guest-mode .login-floating-card {
        position: static;
        margin-top: 16px;
    }

    .guest-mode .login-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .app-mode .upload-grid {
        grid-template-columns: 1fr;
    }

    .guest-mode .login-screen {
        padding: 0;
    }

    .guest-mode .login-scene {
        width: 100%;
    }

    .guest-mode .login-card--advanced {
        gap: 0;
    }

    .guest-mode .login-hero--advanced,
    .guest-mode .login-panel {
        border-radius: 0;
        box-shadow: none;
    }

    .guest-mode .login-hero--advanced {
        min-height: auto;
        padding: 32px 22px 24px;
    }

    .guest-mode .login-hero--advanced h1 {
        font-size: 2.55rem;
    }

    .guest-mode .login-panel {
        padding: 22px;
        background: #f9fbff;
        border: 0;
    }

    .guest-mode .login-orb {
        display: none;
    }
}

.guest-mode > .alert {
    position: fixed;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: min(680px, calc(100% - 28px));
    z-index: 30;
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 44px rgba(20, 35, 68, 0.14);
}

.guest-mode .login-screen {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: grid;
    align-items: center;
    padding: 40px 24px;
    background:
        radial-gradient(circle at 12% 18%, rgba(18, 88, 214, 0.16), transparent 22%),
        radial-gradient(circle at 88% 12%, rgba(66, 152, 255, 0.16), transparent 20%),
        radial-gradient(circle at 78% 82%, rgba(15, 86, 214, 0.12), transparent 24%),
        linear-gradient(180deg, #edf3ff 0%, #f7f9fd 50%, #f4f7fb 100%);
}

.guest-mode .login-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.36)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 140px);
    opacity: 0.52;
    pointer-events: none;
}

.guest-mode .login-frame {
    width: min(1200px, 100%);
    margin: 0 auto;
    position: relative;
}

.guest-mode .login-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.95fr);
    gap: 28px;
    align-items: stretch;
}

.guest-mode .login-ambient {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(12px);
    animation: loginAmbientFloat 14s ease-in-out infinite;
}

.guest-mode .login-ambient--one {
    width: 240px;
    height: 240px;
    top: -44px;
    left: -76px;
    background: radial-gradient(circle, rgba(15, 86, 214, 0.2), rgba(15, 86, 214, 0));
}

.guest-mode .login-ambient--two {
    width: 180px;
    height: 180px;
    right: 16%;
    top: 12%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0));
    animation-duration: 11s;
}

.guest-mode .login-ambient--three {
    width: 280px;
    height: 280px;
    right: -84px;
    bottom: -50px;
    background: radial-gradient(circle, rgba(62, 143, 255, 0.18), rgba(62, 143, 255, 0));
    animation-duration: 16s;
}

.guest-mode .login-brand-panel,
.guest-mode .login-access-panel {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
}

.guest-mode .login-brand-panel {
    min-height: 620px;
    padding: 36px;
    display: grid;
    align-content: space-between;
    gap: 26px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 24%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.1), transparent 28%),
        linear-gradient(160deg, #2a6be8 0%, #1459d6 56%, #093f9e 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 70px rgba(12, 67, 169, 0.24);
    animation: fadeUp 620ms ease both;
}

.guest-mode .login-brand-panel::before,
.guest-mode .login-brand-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.guest-mode .login-brand-panel::before {
    width: 300px;
    height: 300px;
    right: -110px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
}

.guest-mode .login-brand-panel::after {
    width: 180px;
    height: 180px;
    left: -64px;
    top: -72px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
}

.guest-mode .login-brand-panel__badge,
.guest-mode .login-access-panel__tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.guest-mode .login-brand-panel__badge {
    position: relative;
    z-index: 1;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.guest-mode .login-brand-panel__copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 16px;
    max-width: 470px;
}

.guest-mode .login-brand-panel__eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(232, 240, 255, 0.82);
    font-weight: 700;
}

.guest-mode .login-brand-panel__copy h1 {
    margin: 0;
    font-size: clamp(3rem, 4.7vw, 4.9rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.guest-mode .login-brand-panel__copy p {
    margin: 0;
    max-width: 450px;
    font-size: 1.04rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
}

.guest-mode .login-brand-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 500px;
}

.guest-mode .login-brand-card {
    padding: 18px 18px 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    animation: fadeUp 620ms ease both, loginCardDrift 10s ease-in-out 820ms infinite;
}

.guest-mode .login-brand-card--accent {
    background: rgba(255, 255, 255, 0.18);
    animation-delay: 140ms, 1s;
}

.guest-mode .login-brand-card span,
.guest-mode .login-brand-card small {
    display: block;
}

.guest-mode .login-brand-card span {
    margin-bottom: 10px;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(233, 240, 255, 0.78);
    font-weight: 700;
}

.guest-mode .login-brand-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.08rem;
    line-height: 1.35;
}

.guest-mode .login-brand-card small {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
    line-height: 1.5;
}

.guest-mode .login-brand-pills {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 500px;
}

.guest-mode .login-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    backdrop-filter: blur(14px);
}

.guest-mode .login-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    width: 220px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 36px rgba(18, 60, 148, 0.16);
    animation: fadeUp 720ms ease both, loginFloatCardModern 11s ease-in-out 1s infinite;
    z-index: 1;
}

.guest-mode .login-float-card i {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
}

.guest-mode .login-float-card strong,
.guest-mode .login-float-card span {
    display: block;
}

.guest-mode .login-float-card strong {
    margin-bottom: 3px;
    font-size: 0.9rem;
}

.guest-mode .login-float-card span {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.76rem;
    line-height: 1.45;
}

.guest-mode .login-float-card--top {
    top: 28px;
    right: 28px;
}

.guest-mode .login-float-card--bottom {
    right: 34px;
    bottom: 28px;
    animation-delay: 180ms, 1.2s;
}

.guest-mode .login-access-panel {
    min-height: 620px;
    padding: 32px;
    display: grid;
    align-content: start;
    gap: 22px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(24px);
    box-shadow: 0 28px 68px rgba(28, 43, 77, 0.14);
    animation: fadeUp 760ms ease both;
}

.guest-mode .login-access-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(15, 86, 214, 0.1), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent 44%);
    pointer-events: none;
}

.guest-mode .login-access-panel__top,
.guest-mode .login-panel__header,
.guest-mode .login-access-highlights,
.guest-mode .login-form {
    position: relative;
    z-index: 1;
}

.guest-mode .login-access-panel__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.guest-mode .login-access-panel__tag {
    color: var(--app-blue);
    background: rgba(15, 86, 214, 0.08);
    border: 1px solid rgba(15, 86, 214, 0.08);
}

.guest-mode .login-access-panel__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5771a6;
    font-size: 0.86rem;
    font-weight: 600;
}

.guest-mode .login-panel__header {
    display: grid;
    gap: 10px;
}

.guest-mode .login-panel__header h2 {
    margin: 0;
    font-size: 2.2rem;
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: #18325f;
}

.guest-mode .login-panel__header p {
    margin: 0;
    max-width: 460px;
    color: #687997;
    font-size: 0.98rem;
    line-height: 1.6;
}

.guest-mode .login-access-highlights {
    display: grid;
    gap: 12px;
}

.guest-mode .login-access-highlight {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px 15px;
    border-radius: 20px;
    background: rgba(247, 250, 255, 0.95);
    border: 1px solid #e3ebf8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: fadeUp 560ms ease both;
}

.guest-mode .login-access-highlight:nth-child(2) {
    animation-delay: 120ms;
}

.guest-mode .login-access-highlight:nth-child(3) {
    animation-delay: 240ms;
}

.guest-mode .login-access-highlight i {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #eff5ff 0%, #e1ebff 100%);
    color: var(--app-blue);
}

.guest-mode .login-access-highlight strong,
.guest-mode .login-access-highlight span {
    display: block;
}

.guest-mode .login-access-highlight strong {
    margin-bottom: 3px;
    font-size: 0.92rem;
    color: #18325f;
}

.guest-mode .login-access-highlight span {
    font-size: 0.8rem;
    color: #7485a4;
    line-height: 1.45;
}

.guest-mode .login-form {
    display: grid;
    gap: 18px;
    margin-top: 4px;
}

.guest-mode .login-form .field {
    gap: 9px;
}

.guest-mode .login-form .field label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1f3a67;
}

.guest-mode .login-form .input-shell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 66px;
    padding: 0 18px;
    border-radius: 20px;
    border: 1px solid #d8e2f3;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.96) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.guest-mode .login-form .input-shell i {
    color: #7791c2;
    font-size: 1rem;
}

.guest-mode .login-form .input-shell input {
    height: 64px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #18325f;
}

.guest-mode .login-form .input-shell input::placeholder {
    color: #93a2be;
}

.guest-mode .login-form .input-shell:focus-within {
    transform: translateY(-1px);
    border-color: #abc4ff;
    background: #fff;
    box-shadow:
        0 0 0 6px rgba(15, 86, 214, 0.08),
        0 14px 28px rgba(24, 50, 95, 0.08);
}

.guest-mode .login-submit {
    position: relative;
    width: 100%;
    min-height: 64px;
    border-radius: 20px;
    padding: 18px 22px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 18px 34px rgba(15, 86, 214, 0.2);
    overflow: hidden;
}

.guest-mode .login-submit > * {
    position: relative;
    z-index: 1;
}

.guest-mode .login-submit::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.22) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform 420ms ease;
}

.guest-mode .login-submit:hover::after {
    transform: translateX(120%);
}

.guest-mode .login-submit i {
    transition: transform 180ms ease;
}

.guest-mode .login-submit:hover i {
    transform: translateX(4px);
}

@keyframes loginAmbientFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -16px, 0);
    }
}

@keyframes loginCardDrift {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -8px, 0);
    }
}

@keyframes loginFloatCardModern {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -10px, 0);
    }
}

@media (max-width: 1080px) {
    .guest-mode .login-layout {
        grid-template-columns: 1fr;
    }

    .guest-mode .login-brand-panel,
    .guest-mode .login-access-panel {
        min-height: auto;
    }

    .guest-mode .login-float-card {
        position: static;
        width: 100%;
    }

    .guest-mode .login-brand-panel {
        gap: 18px;
    }
}

@media (max-width: 760px) {
    .guest-mode > .alert {
        top: 16px;
        width: min(640px, calc(100% - 20px));
    }

    .guest-mode .login-screen {
        padding: 22px 14px 28px;
    }

    .guest-mode .login-layout {
        gap: 14px;
    }

    .guest-mode .login-brand-panel,
    .guest-mode .login-access-panel {
        padding: 24px 20px;
        border-radius: 28px;
    }

    .guest-mode .login-brand-panel__copy h1 {
        font-size: clamp(2.35rem, 10vw, 3.5rem);
    }

    .guest-mode .login-brand-grid {
        grid-template-columns: 1fr;
    }

    .guest-mode .login-panel__header h2 {
        font-size: 1.9rem;
    }
}

@media (max-width: 560px) {
    .guest-mode .login-screen {
        padding: 0;
    }

    .guest-mode .login-frame {
        width: 100%;
    }

    .guest-mode .login-layout {
        gap: 0;
    }

    .guest-mode .login-brand-panel {
        border-radius: 0 0 30px 30px;
        padding: 30px 20px 22px;
    }

    .guest-mode .login-access-panel {
        margin-top: -10px;
        border-radius: 30px 30px 0 0;
        padding: 24px 20px 28px;
    }

    .guest-mode .login-brand-pills {
        gap: 8px;
    }

    .guest-mode .login-brand-pill {
        width: calc(50% - 4px);
        justify-content: center;
    }

    .guest-mode .login-access-highlight {
        padding: 13px;
    }

    .guest-mode .login-form .input-shell {
        min-height: 62px;
    }

    .guest-mode .login-form .input-shell input {
        height: 60px;
    }
}
