/* =========================================================
   STUDIO B ORDERS
========================================================= */

* {
  box-sizing: border-box;
}

:root {
  --bg: #f3f2ee;
  --surface: #ffffff;
  --surface-soft: #f8f7f4;

  --text: #181817;
  --text-soft: #73716b;

  --border: #deddd8;
  --border-dark: #c8c6bf;

  --accent: #ff6b35;
  --accent-soft: #fff0e9;

  --success: #16834b;
  --success-soft: #eaf7ef;
  --success-border: #a9d9bd;

  --danger: #c83d36;
  --danger-soft: #fff0ee;

  --radius-small: 12px;
  --radius-medium: 18px;
  --radius-large: 28px;

  --shadow:
    0 1px 2px rgba(0, 0, 0, 0.03),
    0 12px 40px rgba(0, 0, 0, 0.055);

  --font:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
}


/* =========================================================
   BASE
========================================================= */

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

.hidden {
  display: none !important;
}


/* =========================================================
   APP
========================================================= */

.app {
  width: 100%;
  max-width: 620px;

  margin: 0 auto;

  padding:
    max(24px, env(safe-area-inset-top))
    18px
    max(40px, env(safe-area-inset-bottom));
}


/* =========================================================
   HEADER
========================================================= */

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 24px;
  padding: 4px 2px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-button {
  padding: 0;
  background: transparent;
  color: inherit;
  border: 0;
  text-align: left;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

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

  border-radius: 50%;

  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-product {
  margin-top: 3px;

  color: var(--text-soft);

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.restaurant-status {
  display: flex;
  align-items: center;

  gap: 7px;

  min-width: 0;

  color: var(--text-soft);

  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-align: right;
}

.restaurant-status span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  flex: 0 0 auto;

  width: 7px;
  height: 7px;

  background: var(--success);
  border-radius: 50%;
}


/* =========================================================
   DASHBOARD
========================================================= */

.dashboard-view {
  width: 100%;
}

.dashboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 22px;
  padding: 4px 2px;
}

.dashboard-eyebrow {
  margin: 0 0 5px;

  color: var(--text-soft);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.dashboard-heading h1 {
  margin: 0;

  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.dashboard-date {
  margin: 6px 0 0;

  color: var(--text-soft);

  font-size: 13px;
}

.refresh-button {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  background: var(--surface);

  color: var(--text);

  border: 1px solid var(--border);
  border-radius: 50%;

  box-shadow: 0 3px 12px rgba(0,0,0,.035);

  font-size: 21px;
}


/* =========================================================
   TABS
========================================================= */

.dashboard-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 5px;

  margin-bottom: 16px;
  padding: 5px;

  background: #e7e5df;

  border-radius: 16px;
}

.dashboard-tab {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  min-height: 46px;

  background: transparent;
  color: var(--text-soft);

  border: 0;
  border-radius: 12px;

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

.dashboard-tab.is-active {
  background: var(--surface);
  color: var(--text);

  box-shadow:
    0 2px 8px rgba(0,0,0,.06);
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 22px;
  height: 22px;

  padding: 0 6px;

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

  border-radius: 999px;

  font-size: 11px;
  font-weight: 800;
}


/* =========================================================
   ORDER LIST
========================================================= */

.orders-list {
  display: flex;
  flex-direction: column;

  gap: 10px;
}

.order-card {
  width: 100%;

  padding: 0;

  overflow: hidden;

  background: var(--surface);
  color: var(--text);

  border: 1px solid rgba(0,0,0,.055);
  border-radius: 20px;

  box-shadow:
    0 1px 2px rgba(0,0,0,.02),
    0 7px 24px rgba(0,0,0,.035);

  text-align: left;

  transition:
    transform .1s ease,
    box-shadow .15s ease;
}

.order-card:active {
  transform: scale(.99);
}

.order-card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  padding: 18px;
}

.order-card-content {
  min-width: 0;
  flex: 1;
}

.order-card-top {
  display: flex;
  align-items: center;

  gap: 8px;

  margin-bottom: 9px;
}

.order-status {
  display: inline-flex;
  align-items: center;

  gap: 6px;

  font-size: 10px;
  font-weight: 850;
  letter-spacing: .09em;
}

.order-status::before {
  content: "";

  width: 7px;
  height: 7px;

  border-radius: 50%;
}

.order-status.pending {
  color: #d95422;
}

.order-status.pending::before {
  background: var(--accent);
}

.order-status.accepted {
  color: var(--success);
}

.order-status.accepted::before {
  background: var(--success);
}

.order-status.completed {
  color: var(--text-soft);
}

.order-status.completed::before {
  background: var(--text-soft);
}

.order-status.rejected {
  color: var(--danger);
}

.order-status.rejected::before {
  background: var(--danger);
}

.order-card-time {
  color: var(--text-soft);

  font-size: 12px;
}

.order-card-name {
  overflow: hidden;

  margin: 0;

  font-size: 18px;
  font-weight: 750;
  line-height: 1.15;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 6px;

  margin-top: 7px;

  color: var(--text-soft);

  font-size: 12px;
}

.order-card-total {
  flex: 0 0 auto;

  text-align: right;
}

.order-card-total strong {
  display: block;

  font-size: 17px;
  letter-spacing: -0.025em;
}

.order-card-arrow {
  display: block;

  margin-top: 5px;

  color: var(--text-soft);

  font-size: 18px;
}


/* Pending highlight */

.order-card[data-status="pending"] {
  border-color: #f2c3b0;
}

.order-card[data-status="pending"] .order-card-main {
  background:
    linear-gradient(
      90deg,
      var(--accent-soft),
      #fff 35%
    );
}


/* =========================================================
   EMPTY
========================================================= */

.empty-state {
  padding: 55px 25px;

  background: var(--surface);

  border: 1px solid rgba(0,0,0,.05);
  border-radius: 22px;

  text-align: center;
}

.empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 50px;
  height: 50px;

  margin: 0 auto 18px;

  background: var(--success-soft);
  color: var(--success);

  border-radius: 50%;

  font-weight: 800;
}

.empty-state h2 {
  margin: 0;

  font-size: 20px;
  letter-spacing: -.025em;
}

.empty-state p {
  max-width: 320px;

  margin: 8px auto 0;

  color: var(--text-soft);

  font-size: 14px;
}


/* =========================================================
   HISTORY
========================================================= */

.history-date-navigation {
  display: grid;
  grid-template-columns: 48px 1fr 48px;

  align-items: center;

  gap: 8px;

  margin-bottom: 10px;
}

.date-nav-button,
.history-current-date {
  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: 15px;
}

.date-nav-button {
  height: 52px;

  color: var(--text);

  font-size: 18px;
}

.date-nav-button:disabled {
  opacity: .3;
}

.history-current-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 52px;

  padding: 6px 12px;

  color: var(--text);
}

.history-current-date span {
  font-size: 13px;
  font-weight: 800;
}

.history-current-date small {
  margin-top: 2px;

  color: var(--text-soft);

  font-size: 10px;
}

.today-button {
  width: 100%;

  margin-bottom: 10px;
  padding: 10px;

  background: transparent;
  color: var(--text-soft);

  border: 0;

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

.history-summary {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;

  align-items: center;

  margin-bottom: 12px;
  padding: 17px 18px;

  background: var(--surface);

  border: 1px solid rgba(0,0,0,.05);
  border-radius: 18px;
}

.history-summary-item {
  display: flex;
  flex-direction: column;

  gap: 3px;
}

.history-summary-item:last-child {
  text-align: right;
}

.history-summary-item span {
  color: var(--text-soft);

  font-size: 11px;
}

.history-summary-item strong {
  font-size: 18px;
  letter-spacing: -.025em;
}

.history-summary-divider {
  width: 1px;
  height: 34px;

  background: var(--border);
}


/* =========================================================
   BACK BUTTON
========================================================= */

.back-button {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  margin: 0 0 14px;
  padding: 8px 4px;

  background: transparent;
  color: var(--text-soft);

  border: 0;

  font-size: 13px;
  font-weight: 700;
}

.back-button span {
  font-size: 18px;
}


/* =========================================================
   MAIN ORDER CARD
========================================================= */

.order-view {
  overflow: hidden;

  background: var(--surface);

  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-large);

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

.order-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;

  padding: 24px;

  background: var(--surface-soft);

  border-bottom: 1px solid var(--border);
}

.new-order-label {
  display: flex;
  align-items: center;

  gap: 9px;

  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.pulse-dot {
  position: relative;

  width: 9px;
  height: 9px;

  background: var(--accent);
  border-radius: 50%;
}

.pulse-dot::after {
  content: "";

  position: absolute;
  inset: -4px;

  border: 1px solid var(--accent);
  border-radius: 50%;

  opacity: 0.35;

  animation: orderPulse 1.8s ease-out infinite;
}

@keyframes orderPulse {
  0% {
    transform: scale(.65);
    opacity: .55;
  }

  70%,
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.order-status-static .pulse-dot::after {
  display: none;
}

.order-status-static .pulse-dot {
  background: var(--success);
}

.order-status-completed .pulse-dot {
  background: var(--text-soft);
}

.order-status-rejected .pulse-dot {
  background: var(--danger);
}

.order-meta {
  display: flex;
  align-items: center;

  gap: 7px;

  margin-top: 8px;

  color: var(--text-soft);

  font-size: 13px;
}

.meta-divider {
  opacity: .55;
}

.fulfillment-badge {
  flex: 0 0 auto;

  padding: 8px 12px;

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

  border-radius: 999px;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}


/* =========================================================
   ORDER CONTENT
========================================================= */

.section-label {
  margin: 0 0 9px;

  color: var(--text-soft);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.customer-section,
.delivery-section,
.items-section,
.eta-section {
  padding: 24px;
}

.customer-section {
  padding-bottom: 22px;
}

.customer-section h1 {
  margin: 0;

  font-size: clamp(24px, 7vw, 32px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.customer-phone {
  display: inline-block;

  margin-top: 8px;

  color: var(--text-soft);

  font-size: 16px;
  font-weight: 550;

  text-decoration: none;
}

.delivery-section {
  padding-top: 0;
}

.delivery-section p:last-child {
  margin: 0;

  font-size: 16px;
  font-weight: 600;
}

.items-section {
  padding-top: 4px;
}

.order-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;

  align-items: start;

  gap: 8px;

  padding: 15px 0;

  border-bottom: 1px solid var(--border);
}

.order-item:first-of-type {
  border-top: 1px solid var(--border);
}

.item-quantity {
  font-weight: 800;
}

.item-content {
  min-width: 0;
}

.item-name {
  display: block;
  font-weight: 650;
}

.item-options {
  display: block;

  margin-top: 4px;

  color: var(--text-soft);

  font-size: 13px;
}

.item-price {
  padding-left: 8px;

  font-weight: 650;

  white-space: nowrap;
}

.total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;

  gap: 20px;

  padding: 5px 24px 28px;
}

.total-row span {
  font-size: 15px;
  font-weight: 650;
}

.total-row strong {
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.04em;
}


/* =========================================================
   ETA
========================================================= */

.eta-section {
  padding-top: 24px;

  background: var(--surface-soft);

  border-top: 1px solid var(--border);
}

.eta-heading {
  margin-bottom: 18px;
}

.eta-heading h2 {
  margin: 0;

  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.eta-help {
  margin: 8px 0 0;

  color: var(--text-soft);

  font-size: 13px;
}

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

  gap: 10px;
}

.eta-button {
  position: relative;

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

  gap: 5px;

  min-height: 70px;

  padding: 10px;

  background: var(--surface);
  color: var(--text);

  border: 1px solid var(--border-dark);
  border-radius: var(--radius-medium);
}

.eta-button strong {
  font-size: 24px;
  line-height: 1;
}

.eta-button span {
  color: var(--text-soft);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.eta-button-wide {
  grid-column: 1 / -1;
}

.eta-button.is-selected {
  background: var(--text);
  color: #fff;

  border-color: var(--text);
}

.eta-button.is-selected span {
  color: rgba(255,255,255,.7);
}

.eta-button.is-selected::after {
  content: "✓";

  position: absolute;
  top: 8px;
  right: 10px;

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

  width: 18px;
  height: 18px;

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

  border-radius: 50%;

  font-size: 11px;
  font-weight: 900;
}

.selected-eta {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-top: 16px;
  padding: 14px 16px;

  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: var(--radius-small);
}

.selected-eta > span {
  color: var(--text-soft);

  font-size: 13px;
  font-weight: 600;
}

.accept-button,
.complete-button {
  width: 100%;
  min-height: 62px;

  margin-top: 16px;
  padding: 14px 20px;

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

  border: 1px solid var(--success);
  border-radius: var(--radius-medium);

  box-shadow:
    0 7px 20px rgba(22,131,75,.18);

  font-size: 15px;
  font-weight: 800;
}

.accept-button:disabled {
  background: #d9d8d3;
  color: #96948d;

  border-color: #d9d8d3;

  box-shadow: none;
}

.reject-section {
  padding: 16px 24px 24px;
}

.reject-button {
  width: 100%;
  min-height: 54px;

  background: transparent;
  color: var(--danger);

  border: 1px solid #e5c6c2;
  border-radius: var(--radius-medium);

  font-size: 14px;
  font-weight: 700;
}


/* =========================================================
   ACCEPTED ORDER
========================================================= */

.accepted-actions {
  padding: 24px;

  background: var(--success-soft);

  border-top: 1px solid var(--success-border);
}

.accepted-info h2 {
  margin: 0;

  font-size: 19px;
  letter-spacing: -.025em;
}

.accepted-time {
  display: flex;
  align-items: baseline;

  gap: 6px;

  margin-top: 9px;

  color: var(--success);
}

.accepted-time strong {
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.04em;
}

.accepted-time span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.complete-order-box {
  margin-top: 22px;
  padding-top: 20px;

  border-top: 1px solid var(--success-border);
}

.complete-order-box p {
  margin: 0;

  color: #557162;

  font-size: 13px;
  line-height: 1.5;
}


/* =========================================================
   CLOSED ORDER
========================================================= */

.closed-order-info {
  display: flex;
  align-items: flex-start;

  gap: 16px;

  padding: 24px;

  background: var(--surface-soft);

  border-top: 1px solid var(--border);
}

.closed-order-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  width: 42px;
  height: 42px;

  background: var(--success-soft);
  color: var(--success);

  border-radius: 50%;

  font-weight: 800;
}

.closed-order-info h2 {
  margin: 0;

  font-size: 19px;
  letter-spacing: -.025em;
}

.closed-order-info p:last-child {
  margin: 5px 0 0;

  color: var(--text-soft);

  font-size: 13px;
}

.closed-order-info.is-rejected .closed-order-icon {
  background: var(--danger-soft);
  color: var(--danger);
}


/* =========================================================
   LOADING / ERROR
========================================================= */

.state-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 400px;

  padding: 50px 24px;

  background: var(--surface);

  border-radius: var(--radius-large);

  box-shadow: var(--shadow);

  text-align: center;
}

.state-screen h1 {
  margin: 18px 0 8px;

  font-size: 25px;
  letter-spacing: -.03em;
}

.state-screen p {
  max-width: 320px;

  margin: 12px 0 0;

  color: var(--text-soft);
}

.loader {
  width: 28px;
  height: 28px;

  border: 3px solid var(--border);
  border-top-color: var(--text);
  border-radius: 50%;

  animation: spin .7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.state-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 62px;
  height: 62px;

  border-radius: 50%;

  font-size: 28px;
  font-weight: 700;
}

.error-icon {
  background: var(--danger-soft);
  color: var(--danger);
}

.secondary-button,
.state-action-button {
  margin-top: 22px;
  padding: 13px 18px;

  background: var(--surface-soft);
  color: var(--text);

  border: 1px solid var(--border);
  border-radius: 14px;

  font-weight: 700;
}


/* =========================================================
   OVERLAY
========================================================= */

.processing-overlay {
  position: fixed;
  inset: 0;

  z-index: 100;

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

  padding: 24px;

  background: rgba(243,242,238,.82);

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

.processing-box {
  display: flex;
  align-items: center;

  gap: 14px;

  padding: 18px 22px;

  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: var(--radius-medium);

  box-shadow: var(--shadow);

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


/* =========================================================
   FOCUS
========================================================= */

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(255,107,53,.3);
  outline-offset: 3px;
}


/* =========================================================
   DESKTOP HOVER
========================================================= */

@media (hover: hover) and (pointer: fine) {

  .order-card:hover {
    transform: translateY(-1px);

    box-shadow:
      0 2px 4px rgba(0,0,0,.025),
      0 12px 30px rgba(0,0,0,.06);
  }

  .eta-button:not(.is-selected):not(:disabled):hover {
    border-color: var(--text);
  }

  .reject-button:not(:disabled):hover {
    background: var(--danger-soft);
    border-color: var(--danger);
  }

  .refresh-button:hover,
  .date-nav-button:hover {
    border-color: var(--border-dark);
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 480px) {

  .app {
    padding-left: 12px;
    padding-right: 12px;
  }

  .app-header {
    margin-bottom: 16px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;

    font-size: 14px;
  }

  .restaurant-status {
    max-width: 48%;

    font-size: 9px;
  }

  .order-view,
  .state-screen {
    border-radius: 22px;
  }

  .order-heading,
  .customer-section,
  .delivery-section,
  .items-section,
  .eta-section,
  .accepted-actions,
  .closed-order-info {
    padding-left: 20px;
    padding-right: 20px;
  }

  .delivery-section {
    padding-top: 0;
  }

  .items-section {
    padding-top: 4px;
  }

  .total-row {
    padding-left: 20px;
    padding-right: 20px;
  }

  .reject-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .dashboard-heading h1 {
    font-size: 31px;
  }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 350px) {

  .brand-text {
    display: none;
  }

  .restaurant-status {
    max-width: 70%;
  }

  .order-heading {
    gap: 10px;
  }

  .eta-button {
    min-height: 64px;
  }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;

    transition-duration: .01ms !important;
  }

}

/* =========================================================
   AUTH / LOGIN
========================================================= */

.login-view {
  min-height:
    calc(100vh - 80px);

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 30px 0 50px;
}


.login-brand {
  display: flex;
  align-items: center;

  gap: 12px;

  margin: 0 auto 28px;
}


.login-brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 46px;
  height: 46px;

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

  border-radius: 50%;

  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.04em;
}


.login-brand-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}


.login-brand-product {
  margin-top: 3px;

  color: var(--text-soft);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}


.login-card {
  width: 100%;

  padding: 32px;

  background: var(--surface);

  border:
    1px solid rgba(0,0,0,.055);

  border-radius:
    var(--radius-large);

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


.login-eyebrow {
  margin: 0 0 8px;

  color: var(--text-soft);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
}


.login-card h1 {
  margin: 0;

  font-size: 31px;
  line-height: 1.05;
  letter-spacing: -.04em;
}


.login-description {
  max-width: 380px;

  margin: 10px 0 28px;

  color: var(--text-soft);

  font-size: 14px;
  line-height: 1.5;
}


.login-field {
  margin-bottom: 17px;
}


.login-field label {
  display: block;

  margin-bottom: 7px;

  color: var(--text-soft);

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


.login-field input {
  width: 100%;
  min-height: 54px;

  padding: 0 15px;

  background: var(--surface-soft);
  color: var(--text);

  border:
    1px solid var(--border-dark);

  border-radius:
    14px;

  outline: none;

  font-size: 16px;

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


.login-field input:focus {
  background: #fff;

  border-color:
    var(--text);

  box-shadow:
    0 0 0 3px rgba(24,24,23,.07);
}


.login-button {
  width: 100%;
  min-height: 58px;

  margin-top: 7px;

  background:
    var(--text);

  color: #fff;

  border: 0;

  border-radius:
    var(--radius-medium);

  font-size: 14px;
  font-weight: 800;
}


.login-button:disabled {
  opacity: .55;
}


.login-error {
  margin:
    -2px 0 14px;

  padding: 11px 13px;

  background:
    var(--danger-soft);

  color:
    var(--danger);

  border-radius: 11px;

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


.login-footer {
  margin: 22px 0 0;

  color: var(--text-soft);

  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;

  text-align: center;
}


/* =========================================================
   HEADER AUTH ACTIONS
========================================================= */

.header-actions {
  display: flex;
  align-items: center;

  gap: 12px;
}


.logout-button {
  padding: 7px 9px;

  background: transparent;

  color: var(--text-soft);

  border:
    1px solid var(--border);

  border-radius: 10px;

  font-size: 10px;
  font-weight: 700;
}


.logout-button:hover {
  color: var(--text);

  border-color:
    var(--border-dark);
}


/* =========================================================
   LOGIN MOBILE
========================================================= */

@media (max-width: 480px) {

  .login-view {
    min-height:
      calc(100vh - 40px);

    padding-top: 10px;
  }


  .login-card {
    padding: 26px 20px;

    border-radius: 22px;
  }


  .login-card h1 {
    font-size: 28px;
  }


  .header-actions {
    gap: 6px;
  }


  .logout-button {
    padding: 6px 7px;

    font-size: 9px;
  }

}


@media (max-width: 390px) {

  .restaurant-status {
    display: none;
  }

}