﻿:root {
  --restomas-bg: #f1f5f9;
  --restomas-surface: #ffffff;
  --restomas-surface-raised: #f8fafc;
  --restomas-text: #1e293b;
  --restomas-text-secondary: #64748b;
  --restomas-text-muted: #94a3b8;
  --restomas-primary: #6366f1;
  --restomas-primary-light: #818cf8;
  --restomas-primary-dark: #4f46e5;
  --restomas-primary-rgb: 99, 102, 241;
  --restomas-secondary: #f59e0b;
  --restomas-secondary-light: #fbbf24;
  --restomas-secondary-dark: #d97706;
  --restomas-success: #10b981;
  --restomas-success-light: #34d399;
  --restomas-success-dark: #059669;
  --restomas-danger: #ef4444;
  --restomas-danger-light: #f87171;
  --restomas-danger-dark: #dc2626;
  --restomas-warning: #f59e0b;
  --restomas-warning-light: #fbbf24;
  --restomas-warning-dark: #d97706;
  --restomas-info: #3b82f6;
  --restomas-info-light: #60a5fa;
  --restomas-info-dark: #2563eb;
  --restomas-info-bg: rgba(59, 130, 246, 0.15);
  --restomas-success-rgb: 16, 185, 129;
  --restomas-danger-rgb: 239, 68, 68;
  --restomas-warning-rgb: 245, 158, 11;
  --restomas-info-rgb: 59, 130, 246;
  --restomas-radius-pill: 9999px;
  --restomas-text-inverse: #ffffff;
  --restomas-border: #e2e8f0;
  --restomas-border-subtle: #f1f5f9;
  --restomas-shadow-clay: 6px 6px 12px rgba(0, 0, 0, 0.08), -4px -4px 10px rgba(255, 255, 255, 0.8), inset 1px 1px 2px rgba(255, 255, 255, 0.6);
  --restomas-shadow-clay-xs: 2px 2px 4px rgba(0, 0, 0, 0.05), -1px -1px 3px rgba(255, 255, 255, 0.6), inset 1px 1px 1px rgba(255, 255, 255, 0.4);
  --restomas-shadow-clay-sm: 3px 3px 6px rgba(0, 0, 0, 0.06), -2px -2px 5px rgba(255, 255, 255, 0.7), inset 1px 1px 1px rgba(255, 255, 255, 0.5);
  --restomas-shadow-clay-md: 4px 4px 9px rgba(0, 0, 0, 0.07), -3px -3px 7px rgba(255, 255, 255, 0.75), inset 1px 1px 2px rgba(255, 255, 255, 0.55);
  --restomas-shadow-clay-lg: 10px 10px 20px rgba(0, 0, 0, 0.1), -6px -6px 14px rgba(255, 255, 255, 0.9), inset 2px 2px 4px rgba(255, 255, 255, 0.6);
  --restomas-shadow-clay-pressed: inset 3px 3px 6px rgba(0, 0, 0, 0.1), inset -2px -2px 4px rgba(255, 255, 255, 0.5);
  --restomas-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --restomas-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --restomas-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --restomas-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --restomas-input-bg: #ffffff;
  --restomas-input-border: #e2e8f0;
  --restomas-input-text: #1e293b;
  --restomas-input-placeholder: #94a3b8;
  --restomas-input-focus-border: #6366f1;
  --restomas-input-focus-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  --restomas-surface-alt: #f8fafc;
  --restomas-surface-muted: #f8fafc;
  --restomas-hover: rgba(99, 102, 241, 0.06);
  --restomas-surface-glass: rgba(255, 255, 255, 0.75);
  --restomas-overlay: rgba(0, 0, 0, 0.3);
  --restomas-backdrop-blur: blur(8px);
  --restomas-canvas-bg: #ffffff;
  --restomas-accent: #6366f1;
  --restomas-accent-secondary: #8b5cf6;
  --restomas-accent-rgb: 99, 102, 241;
  --restomas-on-accent: #ffffff;
  --restomas-clay-bg: #f1f5f9;
  --restomas-clay-elev1: #ffffff;
  --restomas-clay-elev2: #f8fafc;
  --restomas-text-primary: #1e293b;
  --restomas-radius-sm: 10px;
  --restomas-radius-md: 12px;
  --restomas-radius-lg: 24px;
  --restomas-shadow-elev1: 3px 3px 6px rgba(0, 0, 0, 0.06), -2px -2px 5px rgba(255, 255, 255, 0.7), inset 1px 1px 1px rgba(255, 255, 255, 0.5);
  --restomas-shadow-elev2: 4px 4px 9px rgba(0, 0, 0, 0.07), -3px -3px 7px rgba(255, 255, 255, 0.75), inset 1px 1px 2px rgba(255, 255, 255, 0.55);
  --restomas-shadow-elev3: 10px 10px 20px rgba(0, 0, 0, 0.1), -6px -6px 14px rgba(255, 255, 255, 0.9), inset 2px 2px 4px rgba(255, 255, 255, 0.6);
  --restomas-shadow-color: rgba(0, 0, 0, 0.12);
  --restomas-warning-bg: #fff4e0;
  --restomas-warning-text: #b56b00;
  --restomas-info-text: #2563eb;
  --restomas-success-bg: #e0f5e0;
  --restomas-success-text: #2a8a3a;
  --courier-accent: #ff6b35;
  --courier-accent-soft: #ffe5dc;
  --delivery-status-pending: #94a3b8;
  --delivery-status-preparing: #f59e0b;
  --delivery-status-ready: #10b981;
  --delivery-status-assigned: #6366f1;
  --delivery-status-on-the-way: #ff6b35;
  --delivery-status-delivered: #059669;
  --delivery-status-cancelled: #6b7280;
  --delivery-status-failed: #ef4444;
  --courier-status-offline: #6b7280;
  --courier-status-available: #10b981;
  --courier-status-assigned: #f59e0b;
  --courier-status-on-delivery: #ff6b35;
  --courier-status-break: #8b5cf6;
  --courier-vehicle-walk: #64748b;
  --courier-vehicle-bicycle: #06b6d4;
  --courier-vehicle-motorcycle: #8b5cf6;
  --courier-vehicle-car: #0ea5e9;
}

[data-theme=dark] {
  --restomas-bg: #141414;
  --restomas-surface: #1e1e1e;
  --restomas-surface-raised: #272727;
  --restomas-text: #efefef;
  --restomas-text-secondary: #a3a3a3;
  --restomas-text-muted: #6b6b6b;
  --restomas-success-rgb: 16, 185, 129;
  --restomas-danger-rgb: 239, 68, 68;
  --restomas-warning-rgb: 245, 158, 11;
  --restomas-info-rgb: 59, 130, 246;
  --restomas-info-bg: rgba(59, 130, 246, 0.18);
  --restomas-text-inverse: #ffffff;
  --restomas-border: #333333;
  --restomas-border-subtle: #2a2a2a;
  --restomas-shadow-clay: 6px 6px 14px rgba(0, 0, 0, 0.35), -4px -4px 10px rgba(255, 255, 255, 0.03), inset 1px 1px 2px rgba(255, 255, 255, 0.05);
  --restomas-shadow-clay-xs: 2px 2px 5px rgba(0, 0, 0, 0.28), -1px -1px 3px rgba(255, 255, 255, 0.015), inset 1px 1px 1px rgba(255, 255, 255, 0.03);
  --restomas-shadow-clay-sm: 3px 3px 8px rgba(0, 0, 0, 0.3), -2px -2px 5px rgba(255, 255, 255, 0.02), inset 1px 1px 1px rgba(255, 255, 255, 0.04);
  --restomas-shadow-clay-md: 4px 4px 11px rgba(0, 0, 0, 0.33), -3px -3px 7px rgba(255, 255, 255, 0.025), inset 1px 1px 2px rgba(255, 255, 255, 0.045);
  --restomas-shadow-clay-lg: 10px 10px 24px rgba(0, 0, 0, 0.45), -6px -6px 14px rgba(255, 255, 255, 0.04), inset 2px 2px 4px rgba(255, 255, 255, 0.05);
  --restomas-shadow-clay-pressed: inset 3px 3px 8px rgba(0, 0, 0, 0.4), inset -2px -2px 4px rgba(255, 255, 255, 0.03);
  --restomas-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --restomas-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --restomas-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
  --restomas-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.35);
  --restomas-input-bg: #1e1e1e;
  --restomas-input-border: #333333;
  --restomas-input-text: #efefef;
  --restomas-input-placeholder: #6b6b6b;
  --restomas-input-focus-border: #818cf8;
  --restomas-input-focus-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  --restomas-surface-alt: #272727;
  --restomas-surface-muted: #272727;
  --restomas-hover: rgba(99, 102, 241, 0.12);
  --restomas-surface-glass: rgba(20, 20, 20, 0.88);
  --restomas-overlay: rgba(0, 0, 0, 0.6);
  --restomas-canvas-bg: #111215;
  --restomas-accent: #818cf8;
  --restomas-accent-secondary: #a78bfa;
  --restomas-accent-rgb: 129, 140, 248;
  --restomas-on-accent: #ffffff;
  --restomas-clay-bg: #141414;
  --restomas-clay-elev1: #1e1e1e;
  --restomas-clay-elev2: #272727;
  --restomas-text-primary: #efefef;
  --restomas-radius-sm: 10px;
  --restomas-radius-md: 12px;
  --restomas-radius-lg: 24px;
  --restomas-shadow-elev1: 3px 3px 8px rgba(0, 0, 0, 0.3), -2px -2px 5px rgba(255, 255, 255, 0.02), inset 1px 1px 1px rgba(255, 255, 255, 0.04);
  --restomas-shadow-elev2: 4px 4px 11px rgba(0, 0, 0, 0.33), -3px -3px 7px rgba(255, 255, 255, 0.025), inset 1px 1px 2px rgba(255, 255, 255, 0.045);
  --restomas-shadow-elev3: 10px 10px 24px rgba(0, 0, 0, 0.45), -6px -6px 14px rgba(255, 255, 255, 0.04), inset 2px 2px 4px rgba(255, 255, 255, 0.05);
  --restomas-shadow-color: rgba(0, 0, 0, 0.35);
  --restomas-warning-bg: #3a2a10;
  --restomas-warning-text: #f0c270;
  --restomas-info-text: #88baf2;
  --restomas-success-bg: #163a1c;
  --restomas-success-text: #95d4a0;
  --courier-accent: #ff6b35;
  --courier-accent-soft: #3a1f17;
  --delivery-status-pending: #94a3b8;
  --delivery-status-preparing: #f59e0b;
  --delivery-status-ready: #10b981;
  --delivery-status-assigned: #6366f1;
  --delivery-status-on-the-way: #ff6b35;
  --delivery-status-delivered: #059669;
  --delivery-status-cancelled: #6b7280;
  --delivery-status-failed: #ef4444;
  --courier-status-offline: #6b7280;
  --courier-status-available: #10b981;
  --courier-status-assigned: #f59e0b;
  --courier-status-on-delivery: #ff6b35;
  --courier-status-break: #8b5cf6;
  --courier-vehicle-walk: #64748b;
  --courier-vehicle-bicycle: #06b6d4;
  --courier-vehicle-motorcycle: #8b5cf6;
  --courier-vehicle-car: #0ea5e9;
}

.btn-thematic-info {
  --bs-btn-color: #fff;
  --bs-btn-bg: #3b82f6;
  --bs-btn-border-color: #3b82f6;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #2563eb;
  --bs-btn-hover-border-color: #2563eb;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #2563eb;
  --bs-btn-active-border-color: #2563eb;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #3b82f6;
  --bs-btn-disabled-border-color: #3b82f6;
}

[data-theme=dark] .btn-thematic-info {
  --bs-btn-color: #efefef;
  --bs-btn-bg: #272727;
  --bs-btn-border-color: #333333;
  --bs-btn-hover-color: #efefef;
  --bs-btn-hover-bg: #333333;
  --bs-btn-hover-border-color: #444444;
  --bs-btn-active-color: #efefef;
  --bs-btn-active-bg: #3a3a3a;
  --bs-btn-active-border-color: #444444;
  --bs-btn-disabled-color: #6b6b6b;
  --bs-btn-disabled-bg: #272727;
  --bs-btn-disabled-border-color: #333333;
}

.clay-input {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.clay-input__field {
  width: 100%;
  min-height: 30px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-family: inherit;
  color: var(--restomas-text);
  background: var(--restomas-surface);
  border: 1px solid var(--restomas-border);
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.clay-input__field::placeholder {
  color: var(--restomas-text-muted);
  opacity: 1;
}
.clay-input__field:hover:not(:disabled) {
  border-color: var(--restomas-text-muted);
}
.clay-input__field:focus {
  border-color: var(--restomas-primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2), var(--restomas-shadow-clay-sm);
}
.clay-input__field:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.clay-input--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.clay-phone {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: var(--restomas-surface);
  border: 1px solid var(--restomas-border);
  border-radius: 8px;
  transition: all 0.2s ease;
}
.clay-phone:hover:not(.clay-phone--disabled) {
  border-color: var(--restomas-text-muted);
}
.clay-phone:focus-within {
  border-color: var(--restomas-primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2), var(--restomas-shadow-clay-sm);
}
.clay-phone__code {
  flex-shrink: 0;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--restomas-primary);
  white-space: nowrap;
  min-width: 42px;
  text-align: center;
  user-select: none;
}
.clay-phone__divider {
  flex-shrink: 0;
  width: 1px;
  height: 18px;
  background: var(--restomas-border);
}
.clay-phone__field {
  flex: 1;
  width: 100%;
  min-height: 30px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-family: inherit;
  color: var(--restomas-text);
  background: transparent;
  border: none;
  outline: none;
  box-sizing: border-box;
}
.clay-phone__field::placeholder {
  color: var(--restomas-text-muted);
  opacity: 1;
}
.clay-phone--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.clay-email {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: var(--restomas-surface);
  border: 1px solid var(--restomas-border);
  border-radius: 8px;
  transition: all 0.2s ease;
}
.clay-email:hover:not(.clay-email--disabled) {
  border-color: var(--restomas-text-muted);
}
.clay-email:focus-within {
  border-color: var(--restomas-primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2), var(--restomas-shadow-clay-sm);
}
.clay-email__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 0 10px;
  color: var(--restomas-text-muted);
  transition: color 0.2s ease;
}
.clay-email__field {
  flex: 1;
  width: 100%;
  min-height: 30px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-family: inherit;
  color: var(--restomas-text);
  background: transparent;
  border: none;
  outline: none;
  box-sizing: border-box;
}
.clay-email__field::placeholder {
  color: var(--restomas-text-muted);
  opacity: 1;
}
.clay-email--valid {
  border-color: #10b981;
}
.clay-email--valid .clay-email__icon {
  color: #10b981;
}
.clay-email--invalid {
  border-color: #ef4444;
}
.clay-email--invalid .clay-email__icon {
  color: #ef4444;
}
.clay-email--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.clay-textarea {
  position: relative;
  display: flex;
  width: 100%;
}
.clay-textarea__field {
  width: 100%;
  min-height: 30px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-family: inherit;
  color: var(--restomas-text);
  background: var(--restomas-surface);
  border: 1px solid var(--restomas-border);
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
  resize: none;
  min-height: 60px;
  line-height: 1.4;
}
.clay-textarea__field::placeholder {
  color: var(--restomas-text-muted);
  opacity: 1;
}
.clay-textarea__field:hover:not(:disabled) {
  border-color: var(--restomas-text-muted);
}
.clay-textarea__field:focus {
  border-color: var(--restomas-primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2), var(--restomas-shadow-clay-sm);
}
.clay-textarea__field:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.clay-textarea--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.clay-numberbox {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 30px;
  background: var(--restomas-surface);
  border: 1px solid var(--restomas-border);
  border-radius: 8px;
  transition: all 0.2s ease;
  overflow: hidden;
}
.clay-numberbox:hover:not(.clay-numberbox--disabled) {
  border-color: var(--restomas-text-muted);
}
.clay-numberbox:focus-within {
  border-color: var(--restomas-primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2), var(--restomas-shadow-clay-sm);
}
.clay-numberbox__input {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-family: inherit;
  color: var(--restomas-text);
  background: transparent;
  border: none;
  outline: none;
  text-align: right;
  -moz-appearance: textfield;
}
.clay-numberbox__input::placeholder {
  color: var(--restomas-text-muted);
  opacity: 1;
}
.clay-numberbox__input::-webkit-inner-spin-button, .clay-numberbox__input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.clay-numberbox__spin {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--restomas-border);
  flex-shrink: 0;
}
.clay-numberbox__spin-up, .clay-numberbox__spin-down {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 14px;
  padding: 0;
  font-size: 9px;
  color: var(--restomas-text-secondary);
  background: var(--restomas-surface-raised);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  line-height: 1;
}
.clay-numberbox__spin-up:hover, .clay-numberbox__spin-down:hover {
  color: var(--restomas-primary);
  background: var(--restomas-hover);
  transform: translateY(-1px);
}
.clay-numberbox__spin-up:active, .clay-numberbox__spin-down:active {
  transform: translateY(0);
  box-shadow: var(--restomas-shadow-clay-pressed);
}
.clay-numberbox__spin-up {
  border-bottom: 1px solid var(--restomas-border);
}
.clay-numberbox--no-spin .clay-numberbox__spin {
  display: none;
}
.clay-numberbox--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.clay-numberbox--disabled .clay-numberbox__spin-up,
.clay-numberbox--disabled .clay-numberbox__spin-down {
  pointer-events: none;
  opacity: 0.55;
}

.clay-select {
  position: relative;
  display: inline-flex;
  width: 100%;
}
.clay-select__trigger {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 30px;
  padding: 6px 10px;
  padding-right: 28px;
  font-size: 0.75rem;
  color: var(--restomas-text);
  background: var(--restomas-surface);
  border: 1px solid var(--restomas-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
  outline: none;
}
.clay-select__trigger:hover:not(.clay-select--disabled .clay-select__trigger) {
  border-color: var(--restomas-text-muted);
}
.clay-select__trigger:focus {
  border-color: var(--restomas-primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2), var(--restomas-shadow-clay-sm);
}
.clay-select__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.clay-select__placeholder {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--restomas-text-muted);
}
.clay-select__clear {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 11px;
  color: var(--restomas-text-muted);
  background: none;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  line-height: 1;
}
.clay-select__clear:hover {
  color: var(--restomas-danger);
  background: rgba(239, 68, 68, 0.1);
}
.clay-select__arrow {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  font-size: 10px;
  color: var(--restomas-text-muted);
  transition: transform 0.2s ease;
  pointer-events: none;
}
.clay-select--open .clay-select__arrow {
  transform: translateY(-50%) rotate(180deg);
}
.clay-select--open .clay-select__trigger {
  border-color: var(--restomas-primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2), var(--restomas-shadow-clay-sm);
}
.clay-select__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 9910;
  background: var(--restomas-surface);
  border: 1px solid var(--restomas-border);
  border-radius: 10px;
  box-shadow: var(--restomas-shadow-clay-lg);
  max-height: 200px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: rep-dialog-in 0.2s ease-out;
}
.clay-select__search {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 4px;
  background: var(--restomas-surface);
  border-bottom: 1px solid var(--restomas-border);
  flex-shrink: 0;
}
.clay-select__search input {
  width: 100%;
  min-height: 30px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-family: inherit;
  color: var(--restomas-text);
  background: var(--restomas-surface);
  border: 1px solid var(--restomas-border);
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
  min-height: 26px;
  padding: 4px 8px;
  font-size: 0.6875rem;
}
.clay-select__search input::placeholder {
  color: var(--restomas-text-muted);
  opacity: 1;
}
.clay-select__search input:hover:not(:disabled) {
  border-color: var(--restomas-text-muted);
}
.clay-select__search input:focus {
  border-color: var(--restomas-primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2), var(--restomas-shadow-clay-sm);
}
.clay-select__search input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.clay-select__options {
  overflow-y: auto;
  flex: 1;
}
.clay-select__option {
  padding: 6px 10px;
  font-size: 0.75rem;
  color: var(--restomas-text);
  cursor: pointer;
  transition: background 0.15s ease;
  user-select: none;
}
.clay-select__option:hover, .clay-select__option--focused {
  background: var(--restomas-hover);
}
.clay-select__option--selected {
  background: rgba(99, 102, 241, 0.12);
  color: var(--restomas-primary);
  font-weight: 500;
}
.clay-select__option--selected:hover, .clay-select__option--selected.clay-select__option--focused {
  background: rgba(99, 102, 241, 0.18);
}
.clay-select__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-size: 0.75rem;
  color: var(--restomas-text-muted);
}
.clay-select__backdrop {
  position: fixed;
  inset: 0;
  z-index: 9909;
  background: transparent;
}
.clay-select--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.clay-select--disabled .clay-select__trigger {
  cursor: not-allowed;
}

.clay-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  min-height: 30px;
}
.clay-switch__checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.clay-switch__track {
  position: relative;
  width: 36px;
  height: 18px;
  border-radius: 9999px;
  border: 1px solid var(--restomas-border);
  background: var(--restomas-surface-raised);
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: var(--restomas-shadow-clay-sm);
}
.clay-switch__thumb {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  background: var(--restomas-text-muted);
  box-shadow: var(--restomas-shadow-clay-sm);
  transition: all 0.2s ease;
}
.clay-switch--on .clay-switch__track {
  background: var(--restomas-primary);
  border-color: var(--restomas-primary-dark);
}
.clay-switch--on .clay-switch__thumb {
  left: calc(100% - 15px);
  background: var(--restomas-text-inverse);
}
.clay-switch__label {
  font-size: 0.6875rem;
  color: var(--restomas-text-secondary);
  transition: color 0.2s ease;
  line-height: 1;
}
.clay-switch:hover:not(.clay-switch--disabled) .clay-switch__track {
  border-color: var(--restomas-text-muted);
}
.clay-switch:hover:not(.clay-switch--disabled).clay-switch--on .clay-switch__track {
  border-color: var(--restomas-primary);
}
.clay-switch__checkbox:focus-visible ~ .clay-switch__track {
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2), var(--restomas-shadow-clay-sm);
}
.clay-switch--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.clay-datebox {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: var(--restomas-surface);
  border: 1px solid var(--restomas-border);
  border-radius: 8px;
  transition: all 0.2s ease;
}
.clay-datebox:hover:not(.clay-datebox--disabled) {
  border-color: var(--restomas-text-muted);
}
.clay-datebox:focus-within {
  border-color: var(--restomas-primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2), var(--restomas-shadow-clay-sm);
}
.clay-datebox__field {
  flex: 1;
  width: 100%;
  min-height: 30px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-family: inherit;
  color: var(--restomas-text);
  background: transparent;
  border: none;
  outline: none;
  box-sizing: border-box;
  letter-spacing: 0.5px;
}
.clay-datebox__field::placeholder {
  color: var(--restomas-text-muted);
  opacity: 1;
}
.clay-datebox__hidden {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  border: none;
  padding: 0;
}
.clay-datebox__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px 0 0;
  color: var(--restomas-text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}
.clay-datebox__icon:hover {
  color: var(--restomas-primary);
}
.clay-datebox--invalid {
  border-color: #ef4444;
}
.clay-datebox--invalid .clay-datebox__icon {
  color: #ef4444;
}
.clay-datebox--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.clay-datebox--disabled .clay-datebox__icon {
  pointer-events: none;
}

.clay-form-group {
  margin-bottom: 0.75rem;
}
.clay-form-group__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--restomas-text-secondary);
}

.clay-loader-btn {
  position: relative;
}
.clay-loader-btn.is-loading {
  cursor: wait;
  pointer-events: none;
}
.clay-loader-btn.is-loading > *:not(.clay-loader-btn__spinner) {
  visibility: hidden;
}

.clay-loader-btn__spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.clay-loader-btn__spinner .spinner-border {
  color: currentColor;
  width: 1em;
  height: 1em;
  border-width: 0.15em;
}

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(var(--restomas-primary-rgb), 0.04) 0%, transparent 50%, rgba(var(--restomas-primary-rgb), 0.02) 100%), var(--restomas-bg);
  transition: background 0.3s ease;
}
[data-theme=dark] .login-page {
  background: linear-gradient(135deg, rgba(var(--restomas-primary-rgb), 0.08) 0%, transparent 50%, rgba(var(--restomas-primary-rgb), 0.04) 100%), var(--restomas-bg);
}

.login-container {
  display: flex;
  width: 100%;
  max-width: 820px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--restomas-surface);
  box-shadow: var(--restomas-shadow-clay);
  border: 1px solid var(--restomas-border-subtle);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.login-illustration {
  display: none;
  flex: 0 0 45%;
  background: linear-gradient(160deg, var(--restomas-primary) 0%, var(--restomas-primary-dark) 100%);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}
.login-illustration::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -30%;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}
.login-illustration::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -20%;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}
@keyframes svgBgPulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}
@keyframes svgQrScan {
  0%, 100% {
    opacity: 0.3;
    fill: rgba(255, 255, 255, 0.3);
  }
  50% {
    opacity: 1;
    fill: rgba(255, 255, 255, 0.7);
  }
}
@keyframes svgSteamRise {
  0% {
    opacity: 0;
    transform: translateY(0) scaleX(1);
  }
  20% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.45;
    transform: translateY(-22px) scaleX(1.3);
  }
  80% {
    opacity: 0.2;
  }
  100% {
    opacity: 0;
    transform: translateY(-45px) scaleX(0.8);
  }
}
@keyframes svgClocheBob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
@keyframes svgUtensilRock {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(3deg);
  }
  75% {
    transform: rotate(-3deg);
  }
}
@keyframes svgSparkle {
  0%, 100% {
    opacity: 0.2;
    transform: scale(0.5) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.2) rotate(180deg);
  }
}
@keyframes svgDotPulse {
  0%, 100% {
    opacity: 0.15;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}
@keyframes svgHandServe {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
@keyframes svgBoardBreath {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}
@keyframes svgCardSlideIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes svgAvatarPop {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  60% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes svgPlusPulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}
@keyframes svgFieldSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-15px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes svgLineWrite {
  0% {
    stroke-dashoffset: 50;
  }
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes svgPwdDotPop {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  70% {
    opacity: 1;
    transform: scale(1.3);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes svgLockShake {
  0%, 100% {
    transform: translate(178px, 141px) rotate(0deg);
  }
  20% {
    transform: translate(178px, 141px) rotate(-5deg);
  }
  40% {
    transform: translate(178px, 141px) rotate(5deg);
  }
  60% {
    transform: translate(178px, 141px) rotate(-3deg);
  }
  80% {
    transform: translate(178px, 141px) rotate(2deg);
  }
}
@keyframes svgShieldPop {
  0% {
    opacity: 0;
    transform: translate(210px, 165px) scale(0);
  }
  60% {
    opacity: 1;
    transform: translate(210px, 165px) scale(1.15);
  }
  100% {
    opacity: 1;
    transform: translate(210px, 165px) scale(1);
  }
}
@keyframes svgCheckDraw {
  0% {
    stroke-dashoffset: 25;
  }
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes svgRayBurst {
  0%, 100% {
    opacity: 0;
    transform: scaleY(0.5);
  }
  50% {
    opacity: 0.5;
    transform: scaleY(1.3);
  }
}
@keyframes svgBadgePop {
  0% {
    opacity: 0;
    transform: translate(58px, 180px) scale(0);
  }
  50% {
    opacity: 1;
    transform: translate(58px, 180px) scale(1.2);
  }
  100% {
    opacity: 1;
    transform: translate(58px, 180px) scale(1);
  }
}
@keyframes svgConfettiFloat {
  0% {
    opacity: 0;
    transform: translateY(-12px) rotate(0deg);
  }
  25% {
    opacity: 0.45;
  }
  75% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translateY(15px) rotate(120deg);
  }
}
@keyframes svgConfettiCirclePulse {
  0%, 100% {
    opacity: 0.1;
    transform: scale(0.7);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.4);
  }
}
@keyframes svgBtnGlow {
  0%, 100% {
    fill: rgba(255, 255, 255, 0.15);
    stroke: rgba(255, 255, 255, 0.35);
  }
  50% {
    fill: rgba(255, 255, 255, 0.28);
    stroke: rgba(255, 255, 255, 0.6);
  }
}
.login-illustration .svg-anim-bg-glow {
  animation: svgBgPulse 6s ease-in-out infinite;
  transform-origin: center;
}
.login-illustration .svg-anim-board {
  transform-origin: 140px 105px;
  animation: svgBoardBreath 5s ease-in-out infinite;
}
.login-illustration .svg-anim-qr-cell {
  animation: svgQrScan 2.5s ease-in-out infinite;
}
.login-illustration .svg-anim-steam {
  animation: svgSteamRise 3.5s ease-out infinite;
}
.login-illustration .svg-anim-cloche {
  animation: svgClocheBob 3s ease-in-out infinite;
}
.login-illustration .svg-anim-hand {
  animation: svgHandServe 3s ease-in-out infinite 0.2s;
}
.login-illustration .svg-anim-fork {
  transform-origin: 55px 160px;
  animation: svgUtensilRock 4s ease-in-out infinite;
}
.login-illustration .svg-anim-knife {
  transform-origin: 225px 160px;
  animation: svgUtensilRock 4s ease-in-out infinite 0.5s;
}
.login-illustration .svg-anim-sparkle-star {
  animation: svgSparkle 3s ease-in-out infinite;
}
.login-illustration .svg-anim-dot {
  animation: svgDotPulse 4s ease-in-out infinite;
}
.login-illustration .svg-anim-reg-card {
  animation: svgCardSlideIn 0.8s ease-out both;
}
.login-illustration .svg-anim-avatar {
  transform-origin: 140px 55px;
  animation: svgAvatarPop 0.7s ease-out 0.4s both;
}
.login-illustration .svg-anim-plus-bg {
  transform-origin: 158px 70px;
  animation: svgPlusPulse 2.5s ease-in-out 1.2s infinite;
}
.login-illustration .svg-anim-form-field {
  animation: svgFieldSlideIn 0.5s ease-out both;
  animation-delay: 0.7s;
}
.login-illustration .svg-anim-form-line {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: svgLineWrite 0.8s ease-out forwards;
  animation-delay: 1s;
}
.login-illustration .svg-anim-pwd-dot {
  animation: svgPwdDotPop 0.4s ease-out both;
  animation-delay: 1.4s;
}
.login-illustration .svg-anim-lock {
  animation: svgLockShake 1.5s ease-in-out 2.5s infinite;
}
.login-illustration .svg-anim-shield {
  animation: svgShieldPop 0.8s ease-out 1.8s both;
}
.login-illustration .svg-anim-shield-check {
  stroke-dasharray: 25;
  stroke-dashoffset: 25;
  animation: svgCheckDraw 0.6s ease-out 2.4s forwards;
}
.login-illustration .svg-anim-badge {
  animation: svgBadgePop 0.7s ease-out 2s both;
}
.login-illustration .svg-anim-badge-check {
  stroke-dasharray: 25;
  stroke-dashoffset: 25;
  animation: svgCheckDraw 0.5s ease-out 2.6s forwards;
}
.login-illustration .svg-anim-badge-ray {
  transform-origin: center;
  animation: svgRayBurst 2s ease-in-out 2.8s infinite;
}
.login-illustration .svg-anim-confetti {
  animation: svgConfettiFloat 4s ease-in-out infinite;
}
.login-illustration .svg-anim-confetti-circle {
  animation: svgConfettiCirclePulse 3.5s ease-in-out infinite;
}
.login-illustration .svg-anim-reg-btn {
  animation: svgBtnGlow 2.5s ease-in-out 1.5s infinite;
}
.login-illustration .svg-anim-at-symbol {
  animation: svgDotPulse 3s ease-in-out 1.3s infinite;
}
@media (prefers-reduced-motion: reduce) {
  .login-illustration .svg-anim-bg-glow, .login-illustration .svg-anim-board, .login-illustration .svg-anim-qr-cell, .login-illustration .svg-anim-steam,
  .login-illustration .svg-anim-cloche, .login-illustration .svg-anim-hand, .login-illustration .svg-anim-fork, .login-illustration .svg-anim-knife,
  .login-illustration .svg-anim-sparkle-star, .login-illustration .svg-anim-dot, .login-illustration .svg-anim-reg-card, .login-illustration .svg-anim-avatar,
  .login-illustration .svg-anim-plus-bg, .login-illustration .svg-anim-form-field, .login-illustration .svg-anim-form-line,
  .login-illustration .svg-anim-pwd-dot, .login-illustration .svg-anim-lock, .login-illustration .svg-anim-shield, .login-illustration .svg-anim-shield-check,
  .login-illustration .svg-anim-badge, .login-illustration .svg-anim-badge-check, .login-illustration .svg-anim-badge-ray,
  .login-illustration .svg-anim-confetti, .login-illustration .svg-anim-confetti-circle, .login-illustration .svg-anim-reg-btn,
  .login-illustration .svg-anim-at-symbol {
    animation: none !important;
  }
}
.login-illustration .illustration-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}
.login-illustration .illustration-content svg {
  max-width: 240px;
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}
.login-illustration .illustration-content h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.login-illustration .illustration-content p {
  font-size: 0.75rem;
  opacity: 0.85;
  line-height: 1.5;
}
@media (min-width: 992px) {
  .login-illustration {
    display: flex;
  }
}

.login-card {
  flex: 1;
  padding: 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--restomas-surface);
}
.login-card .login-header {
  margin-bottom: 1.25rem;
  text-align: center;
}
.login-card .login-header .login-logo {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.75rem;
  display: block;
}
.login-card .login-header h1 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--restomas-text);
  margin: 0 0 0.25rem;
}
.login-card .login-header p {
  font-size: 0.75rem;
  color: var(--restomas-text-muted);
  margin: 0;
}

.login-form-group {
  margin-bottom: 0.75rem;
}
.login-form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--restomas-text-secondary);
  margin-bottom: 0.25rem;
}

.login-input-wrapper {
  position: relative;
}
.login-input-wrapper .form-control {
  height: 34px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--restomas-input-text);
  background-color: var(--restomas-input-bg);
  border: 1px solid var(--restomas-input-border);
  border-radius: 10px;
  box-shadow: var(--restomas-shadow-clay-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.3s ease;
}
.login-input-wrapper .form-control::placeholder {
  color: var(--restomas-input-placeholder);
  font-size: 0.6875rem;
}
.login-input-wrapper .form-control:focus {
  border-color: var(--restomas-input-focus-border);
  box-shadow: var(--restomas-input-focus-shadow);
  outline: none;
}
.login-input-wrapper .form-control.is-invalid {
  border-color: var(--restomas-danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}
.login-input-wrapper .input-icon-right {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.25rem;
  color: var(--restomas-text-muted);
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1;
  transition: color 0.15s ease;
}
.login-input-wrapper .input-icon-right:hover {
  color: var(--restomas-text-secondary);
}
.login-input-wrapper.has-icon-right .form-control {
  padding-right: 2rem;
}

.registration-coupon-section {
  margin-top: 0.5rem;
}
.registration-coupon-section .coupon-toggle {
  width: 100%;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(var(--restomas-primary-rgb), 0.18);
  border-radius: 10px;
  color: var(--restomas-primary);
  background: linear-gradient(135deg, rgba(var(--restomas-primary-rgb), 0.08), rgba(var(--restomas-success-rgb), 0.06)), var(--restomas-surface);
  box-shadow: var(--restomas-shadow-clay-sm), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
  font-size: 0;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.registration-coupon-section .coupon-toggle i,
.registration-coupon-section .coupon-toggle span {
  font-size: 0.75rem;
}
.registration-coupon-section .coupon-toggle i {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background-color: rgba(var(--restomas-primary-rgb), 0.1);
  color: var(--restomas-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.registration-coupon-section .coupon-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--restomas-primary-rgb), 0.36);
  box-shadow: 0 6px 14px rgba(var(--restomas-primary-rgb), 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.registration-coupon-section .coupon-toggle:focus-visible {
  outline: 2px solid var(--restomas-primary);
  outline-offset: 2px;
}
.registration-coupon-section .coupon-toggle:active {
  transform: translateY(1px);
  box-shadow: var(--restomas-shadow-clay-pressed);
}
.registration-coupon-section .coupon-toggle[aria-expanded=true] {
  border-color: rgba(var(--restomas-success-rgb), 0.4);
  color: var(--restomas-success);
}
.registration-coupon-section .coupon-toggle[aria-expanded=true] i {
  background-color: rgba(var(--restomas-success-rgb), 0.12);
  color: var(--restomas-success);
}
.registration-coupon-section .coupon-input-wrap {
  margin-top: 0.5rem;
}
.registration-coupon-section .coupon-input-wrap .form-control {
  height: 34px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--restomas-input-text);
  background-color: var(--restomas-input-bg);
  border: 1px solid var(--restomas-input-border);
  border-radius: 10px;
  box-shadow: var(--restomas-shadow-clay-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.3s ease;
}
.registration-coupon-section .coupon-input-wrap .form-control:focus {
  border-color: var(--restomas-input-focus-border);
  box-shadow: var(--restomas-input-focus-shadow);
  outline: none;
}
.registration-coupon-section .coupon-validation-msg {
  min-height: 16px;
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  line-height: 1.35;
  color: var(--restomas-text-muted);
}
.registration-coupon-section .coupon-validation-msg.is-error {
  color: var(--restomas-danger);
}
.registration-coupon-section .coupon-validation-msg.is-info {
  color: var(--restomas-text-muted);
}
.registration-coupon-section .coupon-validation-msg.is-success {
  color: var(--restomas-success);
}

.btn-login {
  width: 100%;
  height: 36px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--restomas-primary) 0%, var(--restomas-primary-dark) 100%);
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(var(--restomas-primary-rgb), 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}
.btn-login:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(var(--restomas-primary-rgb), 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}
.btn-login:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: var(--restomas-shadow-clay-pressed);
}
.btn-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-login.loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 34px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid var(--restomas-border);
  background: var(--restomas-surface);
  color: var(--restomas-text);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--restomas-shadow-clay-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.btn-social .social-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.btn-social:hover {
  transform: translateY(-1px);
  box-shadow: var(--restomas-shadow-clay);
}
.btn-social:active {
  transform: translateY(0);
  box-shadow: var(--restomas-shadow-clay-pressed);
}

.btn-google:hover {
  border-color: #4285f4;
  color: #4285f4;
}

.btn-microsoft:hover {
  border-color: #00a4ef;
  color: #00a4ef;
}

.btn-apple:hover {
  border-color: var(--restomas-text);
}
[data-theme=dark] .btn-apple:hover {
  border-color: #fff;
}

.divider-text {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  font-size: 0.6875rem;
  color: var(--restomas-text-muted);
  text-transform: lowercase;
}
.divider-text::before, .divider-text::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--restomas-border);
}
.divider-text::before {
  margin-right: 0.75rem;
}
.divider-text::after {
  margin-left: 0.75rem;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--restomas-text-secondary);
  user-select: none;
}
.custom-checkbox input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--restomas-border);
  border-radius: 4px;
  background: var(--restomas-input-bg);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.custom-checkbox input[type=checkbox]:checked {
  background-color: var(--restomas-primary);
  border-color: var(--restomas-primary);
}
.custom-checkbox input[type=checkbox]:checked::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.custom-checkbox input[type=checkbox]:focus-visible {
  box-shadow: var(--restomas-input-focus-shadow);
  outline: none;
}
.custom-checkbox .checkbox-label {
  line-height: 1.3;
}

.password-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 2px 0.25rem;
  color: var(--restomas-text-muted);
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.password-toggle:hover {
  color: var(--restomas-text-secondary);
  background-color: rgba(var(--restomas-primary-rgb), 0.06);
}
.password-toggle:focus-visible {
  outline: 2px solid var(--restomas-primary);
  outline-offset: 1px;
}

.login-alert {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid transparent;
}
.login-alert .alert-icon {
  flex-shrink: 0;
  font-size: 0.875rem;
}
.login-alert.alert-error {
  background-color: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}
[data-theme=dark] .login-alert.alert-error {
  background-color: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
  color: #f87171;
}
.login-alert.alert-success {
  background-color: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  color: #10b981;
}
[data-theme=dark] .login-alert.alert-success {
  background-color: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.btn-resend-verification {
  background: none;
  border: 1px solid var(--restomas-primary);
  color: var(--restomas-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 8px;
  font-size: 0.6875rem;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s, color 0.2s;
}
.btn-resend-verification:hover:not(:disabled) {
  background-color: var(--restomas-primary);
  color: #fff;
}
.btn-resend-verification:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-links {
  font-size: 0.6875rem;
  color: var(--restomas-text-muted);
}
.login-links a {
  color: var(--restomas-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}
.login-links a:hover {
  color: var(--restomas-primary-dark);
  text-decoration: underline;
}

.login-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .login-container {
    max-width: 420px;
    flex-direction: column;
  }
  .login-card {
    padding: 1.5rem;
  }
}
@media (min-width: 992px) {
  .login-container {
    max-width: 820px;
    flex-direction: row;
  }
  .login-card {
    padding: 2rem 1.5rem;
  }
}
@media (max-width: 767.98px) {
  .login-page {
    padding: 0.5rem;
    align-items: flex-start;
    padding-top: 2rem;
  }
  .login-container {
    max-width: 100%;
    flex-direction: column;
    border-radius: 16px;
    box-shadow: var(--restomas-shadow-clay-sm);
  }
  .login-card {
    padding: 1rem 0.75rem;
  }
  .login-card .login-header {
    margin-bottom: 1rem;
  }
  .login-card .login-header h1 {
    font-size: 1rem;
  }
  .social-buttons-row {
    flex-direction: column;
    gap: 0.5rem;
  }
}
.password-strength-container {
  margin-top: 0.25rem;
}

.password-strength-bar {
  height: 4px;
  background-color: var(--restomas-border);
  border-radius: 2px;
  overflow: hidden;
}

.password-strength-fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength-text {
  font-size: 0.6875rem;
  margin-top: 2px;
  display: block;
}

.login-language-switcher {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}
.login-language-switcher .clay-select {
  width: 100%;
}

html[dir=rtl] .login-language-switcher {
  direction: rtl;
}
