/*
  @version 1.0.8
  @changelog Chybova animace PIN poli probiha soucasne a bez zpozdeni.

  @version 1.0.9
  @changelog Doplnen vzhled bubliny prihlaseneho uzivatele.

  @version 1.0.10
  @changelog Doplnen vzhled polozky spravy uzivatelu v bublinovem menu.

  @version 1.0.11
  @changelog Akce bublinoveho menu upraveny pod sebe a doplnena ikona spravy uzivatelu.

  @version 1.0.12
  @changelog Zjemneny barvy akci v bublinovem menu.

  @version 1.0.13
  @changelog Sdileny vzhled bubliny prihlaseneho uzivatele presunut do styles.css.

  @version 1.0.14
  @changelog Dokumentace CSS upravena na obecny popis Motortecu.

  @version 1.0.15
  @changelog Doplnen samostatny mobilni a tabletovy vzhled s numerickou klavesnici.

  @version 1.0.16
  @changelog Doplnen kompaktni dvousloupcovy layout pro mobil a tablet na sirku.

  @version 1.0.17
  @changelog Doplnen mobilni a tabletovy vzhled domovske stranky prihlaseneho uzivatele.

  @version 1.0.18
  @changelog Doplneno jemne oddeleni mobilni hlavicky a podpora barev ikony podle role.

  @version 1.0.19
  @changelog Doplnen vzhled vetsiho tlacitka pro vymazani mobilniho hledaciho pole.

  @version 1.0.20
  @changelog Doplnena responzivni mobilni bublina pro budouci pridani zakazky.
*/

.login-keypad {
  display: none;
}

.mobile-home {
  display: none;
}

.login-feedback {
  order: 3;
}

/* Desktopovy login podle navrhu z aplikace. */
@media (min-width: 768px) {
  :root {
    --page-bg: #f4f6f8;
    --panel-bg: #ffffff;
    --border: rgba(203, 213, 225, 0.8);
    --field-border: #e2e8f0;
    --text: #172554;
    --muted: #64748b;
    --soft: #94a3b8;
    --accent: #172554;
    --primary: #172554;
    --primary-text: #ffffff;
    --focus-ring: rgba(23, 37, 84, 0.16);
    --shadow: 0 4px 24px -4px rgba(15, 23, 42, 0.06);
  }

  body {
    background: var(--page-bg);
  }

  .screen {
    min-height: 100vh;
    padding: 16px;
  }

  .app-shell {
    width: 460px;
    height: auto;
    min-height: 0;
    display: block;
  }

  .intro-panel,
  .login-copy {
    display: none;
  }

  .login-panel {
    width: 100%;
    min-height: 0;
    display: flex;
    gap: 0;
    padding: 48px;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    justify-content: flex-start;
  }

  .portrait-visual {
    order: 1;
    height: auto;
    margin-bottom: 32px;
  }

  .portrait-orb {
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  }

  .portrait-orb img {
    width: 52px;
    height: 52px;
    object-fit: contain;
  }

  .portrait-copy {
    order: 2;
    margin-bottom: 40px;
    gap: 10px;
  }

  .portrait-copy h1 {
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
  }

  .portrait-copy p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45;
  }

  .pin-block {
    gap: 16px;
    min-height: 0;
    margin-bottom: 40px;
  }

  .login-form,
  .login-message {
    order: 3;
  }

  .pin-row {
    justify-content: space-between;
    gap: 10px;
  }

  .pin-slot {
    width: 52px;
    height: 60px;
    border-color: var(--field-border);
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.5);
  }

  .pin-slot.is-filled,
  .pin-slot.is-active {
    background: #ffffff;
  }

  .pin-slot.is-filled::after {
    width: 14px;
    height: 14px;
    background: var(--primary);
  }

  .pin-slot.is-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--focus-ring);
  }

  .pin-hint {
    color: var(--soft);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
  }

  .actions {
    order: 4;
    width: 100%;
  }

  .support-copy {
    order: 5;
    display: block;
    margin-top: 32px;
    color: var(--soft);
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
  }

  .primary {
    height: 52px;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 8px;
    background: var(--primary);
    font-size: 15px;
    font-weight: 700;
    transition:
      background-color 160ms ease,
      box-shadow 160ms ease,
      transform 120ms ease;
  }

  .primary:hover {
    background: #1e3a8a;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
  }

  .primary:active {
    transform: scale(0.98);
  }
}

.login-message-error {
  animation: loginMessageFadeIn 420ms ease-out;
}

.pin-block.is-error .pin-row {
  animation: loginErrorShake 1020ms cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.pin-block.is-error .pin-slot {
  transform-origin: center;
  will-change: transform, border-color, background-color, box-shadow;
  animation: loginPinSlotPulse 900ms ease-out;
}

@keyframes loginMessageFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

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

@keyframes loginErrorShake {
  0% {
    transform: translateX(0);
  }

  12% {
    transform: translate3d(-10px, 0, 0);
  }

  24% {
    transform: translate3d(10px, 0, 0);
  }

  36% {
    transform: translate3d(-7px, 0, 0);
  }

  48% {
    transform: translate3d(7px, 0, 0);
  }

  62% {
    transform: translate3d(-4px, 0, 0);
  }

  76% {
    transform: translate3d(4px, 0, 0);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes loginPinSlotPulse {
  0% {
    border-color: var(--field-border);
    background: rgba(248, 250, 252, 0.5);
    box-shadow: none;
    transform: translateY(0);
  }

  20% {
    border-color: #ef7777;
    background: #fee2e2;
    box-shadow: 0 0 0 9px rgba(220, 38, 38, 0.2);
    transform: translateY(-3px) scale(1.04);
  }

  38% {
    border-color: #ef7777;
    background: #fff1f2;
    box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.14);
    transform: translateY(1px) scale(0.99);
  }

  62% {
    border-color: #f08a8a;
    background: #fffafa;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
    transform: translateY(-1px) scale(1.015);
  }

  100% {
    border-color: var(--field-border);
    background: rgba(248, 250, 252, 0.5);
    box-shadow: none;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pin-block.is-error .pin-row {
    animation: none;
  }

  .pin-block.is-error .pin-slot {
    animation-name: loginPinSlotPulseReduced;
    animation-duration: 700ms;
    animation-delay: 0ms;
  }
}

@keyframes loginPinSlotPulseReduced {
  0%,
  100% {
    border-color: var(--field-border);
    background: rgba(248, 250, 252, 0.5);
    box-shadow: none;
  }

  35% {
    border-color: #ef7777;
    background: #fff1f2;
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.16);
  }
}

/* Mobilni a dotykovy tabletovy login podle navrhu v aplikaci. */
@media (max-width: 47.9375rem), (max-width: 85.375rem) and (pointer: coarse) {
  body {
    background: #ffffff;
  }

  .screen {
    min-height: 100svh;
    padding: 0;
    place-items: stretch;
  }

  .app-shell {
    width: 100%;
    min-height: 100svh;
  }

  .app-shell--authenticated {
    max-width: none;
    background: #ffffff;
  }

  .app-shell--authenticated > .intro-panel,
  .app-shell--authenticated > .login-panel {
    display: none;
  }

  .mobile-home {
    width: 100%;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    color: #111827;
  }

  .mobile-home__header {
    width: min(100%, 42rem);
    margin: 0 auto;
    padding: max(1rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right)) 1.5rem max(1.5rem, env(safe-area-inset-left));
    border-bottom: 0.0625rem solid #f0f2f5;
  }

  .mobile-home__search {
    width: calc(100% - 3.75rem);
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0 0.875rem;
    border: 0.0625rem solid #eef0f3;
    border-radius: 1rem;
    background: rgba(243, 244, 246, 0.8);
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
  }

  .mobile-home__search:focus-within {
    border-color: #d1d5db;
    background: #ffffff;
    box-shadow: 0 0.125rem 0.5rem rgba(15, 23, 42, 0.06);
  }

  .mobile-home__search-icon {
    width: 1.25rem;
    height: 1.25rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #9ca3af;
  }

  .mobile-home__search-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }

  .mobile-home__search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .mobile-home__search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111827;
    font: inherit;
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  .mobile-home__search input::placeholder {
    color: #6b7280;
    opacity: 1;
  }

  .mobile-home__search input::-webkit-search-cancel-button {
    display: none;
  }

  .mobile-home__search-clear {
    width: 2rem;
    height: 2rem;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    padding: 0;
    border: 0.0625rem solid transparent;
    border-radius: 0.625rem;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  }

  .mobile-home__search-clear[hidden] {
    display: none;
  }

  .mobile-home__search-clear svg {
    width: 1.125rem;
    height: 1.125rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }

  .mobile-home__search-clear:hover {
    border-color: #e5e7eb;
    background: #ffffff;
    color: #111827;
  }

  .mobile-home__search-clear:focus-visible {
    outline: 0.125rem solid rgba(59, 130, 246, 0.3);
    outline-offset: 0.0625rem;
  }

  .mobile-home__eyebrow {
    margin: 2rem 0 0;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 650;
    line-height: 1.4;
    letter-spacing: 0.075rem;
    text-transform: uppercase;
  }

  .mobile-home__empty {
    width: min(100%, 42rem);
    min-height: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 1rem max(2rem, env(safe-area-inset-right)) 1.5rem max(2rem, env(safe-area-inset-left));
    text-align: center;
  }

  .mobile-home__empty-icon {
    width: 5rem;
    height: 5rem;
    display: grid;
    place-items: center;
    margin-bottom: 1.5rem;
    border: 0.0625rem solid rgba(229, 231, 235, 0.8);
    border-radius: 1.75rem;
    background: rgba(249, 250, 251, 0.9);
    color: #9ca3af;
    box-shadow: 0 0.125rem 0.375rem rgba(15, 23, 42, 0.04);
  }

  .mobile-home__empty-icon svg {
    width: 2rem;
    height: 2rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
  }

  .mobile-home__empty h1 {
    margin: 0 0 0.625rem;
    color: #111827;
    font-size: 1.375rem;
    font-weight: 650;
    line-height: 1.3;
  }

  .mobile-home__empty p {
    max-width: 18rem;
    margin: 0;
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .mobile-home__actions {
    position: sticky;
    bottom: 0;
    z-index: 10;
    width: min(100%, 42rem);
    display: flex;
    justify-content: center;
    flex: 0 0 auto;
    margin: 0 auto;
    padding: 0 max(1.5rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
    pointer-events: none;
  }

  .mobile-home__add-job {
    min-height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.75rem 1.5rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.14);
    border-radius: 999rem;
    background: #1e3a5f;
    color: #ffffff;
    box-shadow: 0 0.625rem 1.5rem rgba(30, 58, 95, 0.24);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 650;
    line-height: 1.2;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    transition: background-color 160ms ease, box-shadow 160ms ease, transform 100ms ease;
  }

  .mobile-home__add-job svg {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }

  .mobile-home__add-job:hover {
    background: #172f4d;
    box-shadow: 0 0.75rem 1.75rem rgba(23, 47, 77, 0.28);
  }

  .mobile-home__add-job:active {
    transform: scale(0.97);
  }

  .mobile-home__add-job:focus-visible {
    outline: 0.1875rem solid rgba(59, 130, 246, 0.3);
    outline-offset: 0.1875rem;
  }

  .home-authenticated .admin-shell-user {
    top: max(1rem, env(safe-area-inset-top));
    right: max(1.5rem, env(safe-area-inset-right), calc((100vw - 42rem) / 2 + 1.5rem));
  }

  .home-authenticated .admin-shell-user__trigger {
    width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    border-color: var(--user-avatar-border);
    border-radius: 50%;
    background: var(--user-avatar-bg);
    box-shadow: 0 0.125rem 0.375rem rgba(15, 23, 42, 0.08);
  }

  .home-authenticated .admin-shell-user__chevron {
    display: none;
  }

  .home-authenticated .admin-shell-user__trigger .admin-shell-user__avatar {
    width: 100%;
    height: 100%;
    background: transparent;
    border: 0;
    font-size: 0.875rem;
  }

  .intro-panel,
  .login-copy {
    display: none;
  }

  .login-panel {
    width: 100%;
    max-width: 28rem;
    min-height: 100svh;
    height: auto;
    margin: 0 auto;
    padding: max(2rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
    border: 0;
    border-radius: 0;
    box-shadow: none;
    gap: 0;
    justify-content: flex-start;
    overflow: visible;
  }

  .portrait-visual {
    order: 1;
    height: auto;
    margin: 0 0 2rem;
  }

  .portrait-orb {
    width: 3.5rem;
    height: 3.5rem;
    border: 0;
    border-radius: 0.875rem;
    background: #000000;
    box-shadow: 0 0.125rem 0.375rem rgba(15, 23, 42, 0.1);
  }

  .portrait-orb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .portrait-copy {
    order: 2;
    align-items: center;
    margin-bottom: 2.5rem;
    gap: 0.5rem;
    text-align: center;
  }

  .portrait-copy h1 {
    color: #0f172a;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .portrait-copy p {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .login-feedback {
    order: 4;
    min-height: 3.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0.75rem;
  }

  .login-message {
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .login-message-error {
    color: #dc2626;
  }

  .login-message-success {
    color: #15803d;
  }

  .login-panel > .login-message {
    order: 3;
  }

  .login-form {
    display: contents;
  }

  .pin-block {
    order: 3;
    min-height: 1.5rem;
    margin: 0;
    gap: 0;
  }

  .pin-row {
    width: auto;
    gap: 1rem;
  }

  .pin-slot {
    width: 1rem;
    height: 1rem;
    border: 0.125rem solid #e2e8f0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
  }

  .pin-slot.is-filled {
    border-color: #0f172a;
    background: #0f172a;
  }

  .pin-slot.is-filled::after {
    display: none;
  }

  .pin-slot.is-active {
    border-color: #0f172a;
    background: transparent;
    box-shadow: none;
  }

  .login-keypad {
    order: 5;
    width: min(17.5rem, 100%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem 1.25rem;
    margin: 0 auto;
  }

  .login-keypad__key,
  .login-keypad__spacer {
    width: 4rem;
    height: 3.5rem;
    justify-self: center;
  }

  .login-keypad__key {
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 0.75rem;
    background: transparent;
    color: #0f172a;
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color 140ms ease, transform 100ms ease;
  }

  .login-keypad__key:active {
    background: #f1f5f9;
    transform: scale(0.96);
  }

  .login-keypad__key:focus-visible {
    outline: 0.125rem solid rgba(15, 23, 42, 0.35);
    outline-offset: 0.125rem;
  }

  .login-keypad__key:disabled {
    opacity: 0.3;
    cursor: default;
  }

  .login-keypad__key--delete svg {
    width: 1.75rem;
    height: 1.75rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
  }

  .actions {
    order: 6;
    width: 100%;
    margin-top: auto;
    padding-top: 1.5rem;
  }

  .primary {
    width: 100%;
    height: 3.5rem;
    min-height: 3.5rem;
    padding: 0 1.125rem;
    border-radius: 0.75rem;
    background: #0f172a;
    font-size: 1.125rem;
    font-weight: 700;
  }

  .primary:active {
    transform: scale(0.98);
  }

  .support-copy {
    display: none;
  }

  .pin-block.is-error .pin-slot {
    animation-name: loginMobilePinPulse;
  }
}

@media (max-width: 47.9375rem) and (max-height: 42rem), (max-width: 85.375rem) and (pointer: coarse) and (max-height: 42rem) {
  .login-panel {
    padding-top: max(1.25rem, env(safe-area-inset-top));
  }

  .portrait-visual {
    margin-bottom: 1rem;
  }

  .portrait-copy {
    margin-bottom: 1.5rem;
  }

  .login-feedback {
    min-height: 2.75rem;
    padding-top: 0.5rem;
  }

  .login-keypad {
    gap-block: 0.25rem;
  }

  .login-keypad__key,
  .login-keypad__spacer {
    height: 3rem;
  }

  .actions {
    padding-top: 1rem;
  }
}

/* Landscape varianta zabranuje kolizi se starsim trisloupcovym layoutem. */
@media (orientation: landscape) and (max-width: 47.9375rem),
  (orientation: landscape) and (max-width: 85.375rem) and (pointer: coarse) {
  .screen {
    min-height: 100svh;
    overflow-y: auto;
  }

  .app-shell {
    min-height: 100svh;
  }

  .mobile-home__empty {
    padding-block: 0.75rem;
  }

  .mobile-home__empty-icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: 0.75rem;
    border-radius: 1.25rem;
  }

  .mobile-home__empty-icon svg {
    width: 1.625rem;
    height: 1.625rem;
  }

  .mobile-home__empty h1 {
    margin-bottom: 0.375rem;
    font-size: 1.25rem;
  }

  .mobile-home__empty p {
    line-height: 1.45;
  }

  .mobile-home__actions {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  }

  .mobile-home__add-job {
    min-height: 3rem;
    padding: 0.625rem 1.375rem;
  }

  .login-panel {
    width: 100%;
    max-width: 56rem;
    min-height: 100svh;
    height: auto;
    display: grid;
    grid-template-columns: minmax(8.5rem, 0.8fr) minmax(0, 1.2fr);
    grid-template-rows: auto auto 1fr auto;
    align-items: center;
    gap: 0.5rem clamp(0.75rem, 3vw, 2rem);
    padding: max(0.75rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  }

  .portrait-visual {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    margin: 0 0 0.25rem;
  }

  .portrait-orb {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
  }

  .portrait-copy {
    grid-column: 1;
    grid-row: 2;
    align-items: center;
    margin: 0 0 0.5rem;
    gap: 0.25rem;
    text-align: center;
  }

  .portrait-copy h1 {
    font-size: clamp(1.25rem, 5svh, 1.625rem);
    line-height: 1.15;
  }

  .portrait-copy p {
    display: block;
    font-size: clamp(0.6875rem, 2.8svh, 0.8125rem);
    line-height: 1.35;
  }

  .pin-block {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    margin-top: 0.25rem;
  }

  .pin-row {
    max-width: none;
    flex-wrap: nowrap;
    gap: clamp(0.5rem, 1.8vw, 0.875rem);
  }

  .pin-slot {
    width: 0.875rem;
    height: 0.875rem;
  }

  .login-feedback {
    grid-column: 1;
    grid-row: 4;
    min-height: 3rem;
    align-items: center;
    align-self: end;
    padding: 0;
  }

  .login-message {
    font-size: clamp(0.6875rem, 2.8svh, 0.8125rem);
  }

  .login-panel > .login-message {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .login-keypad {
    grid-column: 2;
    grid-row: 1 / 4;
    width: min(17.5rem, 100%);
    align-self: center;
    gap: 0.25rem clamp(0.5rem, 2vw, 1.25rem);
    margin: 0 auto;
  }

  .login-keypad__key,
  .login-keypad__spacer {
    width: clamp(2.5rem, 11svh, 3.5rem);
    height: clamp(2.5rem, 11svh, 3.5rem);
  }

  .login-keypad__key {
    font-size: clamp(1.375rem, 6svh, 1.75rem);
  }

  .login-keypad__key--delete svg {
    width: clamp(1.375rem, 6svh, 1.75rem);
    height: clamp(1.375rem, 6svh, 1.75rem);
  }

  .actions {
    grid-column: 2;
    grid-row: 4;
    align-self: end;
    margin: 0;
    padding: 0;
  }

  .primary {
    height: clamp(3rem, 14svh, 3.5rem);
    min-height: 3rem;
  }
}

@keyframes loginMobilePinPulse {
  0%,
  100% {
    border-color: #e2e8f0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  35% {
    border-color: #ef4444;
    background: #fee2e2;
    box-shadow: 0 0 0 0.25rem rgba(239, 68, 68, 0.12);
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 47.9375rem),
  (prefers-reduced-motion: reduce) and (max-width: 85.375rem) and (pointer: coarse) {
  .pin-block.is-error .pin-slot {
    animation: none;
  }
}
