/* POS login — mobile-first, no Tailwind */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700;800;900&display=swap");

:root {
  --pos-bg: #0f172a;
  --pos-bg2: #1e293b;
  --pos-surface: rgba(255, 255, 255, 0.06);
  --pos-border: rgba(255, 255, 255, 0.12);
  --pos-text: #f8fafc;
  --pos-muted: #94a3b8;
  --pos-accent: #6366f1;
  --pos-accent-hover: #4f46e5;
  --pos-radius: 16px;
  --pos-font: "Roboto", sans-serif;
  --pos-touch: 48px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.pos-login {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--pos-font);
  color: var(--pos-text);
  background-color: var(--pos-bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(99, 102, 241, 0.35), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(16, 185, 129, 0.12), transparent 45%),
    var(--pos-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.pos-login__main {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: max(1.25rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.pos-login__card {
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 1.35rem;
  background: var(--pos-surface);
  border: 1px solid var(--pos-border);
  border-radius: var(--pos-radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}

.pos-login__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.pos-login__logo {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, var(--pos-accent), #818cf8);
  border-radius: 12px;
}

.pos-login__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.pos-login__sub {
  margin: 0.2rem 0 0;
  font-size: 0.875rem;
  color: var(--pos-muted);
}

.pos-login__alert {
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
}

.pos-login__form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pos-login__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pos-login__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
}

.pos-login__store-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.35;
}

.pos-login__input {
  width: 100%;
  min-height: var(--pos-touch);
  padding: 0.65rem 0.9rem;
  font: inherit;
  font-size: 16px;
  color: var(--pos-text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--pos-border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pos-login__input:focus {
  border-color: rgba(99, 102, 241, 0.65);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.pos-login__submit {
  width: 100%;
  min-height: var(--pos-touch);
  margin-top: 0.25rem;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  background: var(--pos-accent);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
  transition: background 0.15s ease, transform 0.1s ease;
}

.pos-login__submit:hover {
  background: var(--pos-accent-hover);
}

.pos-login__submit:active {
  transform: scale(0.98);
}

.pos-login__options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.15rem;
}

.pos-login__check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.875rem;
  line-height: 1.35;
  color: #cbd5e1;
  cursor: pointer;
  user-select: none;
}

.pos-login__check input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.15rem 0 0;
  flex-shrink: 0;
  accent-color: var(--pos-accent);
  cursor: pointer;
}

.pos-login__hint {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--pos-muted);
}

@media (min-width: 30rem) {
  .pos-login__card {
    padding: 1.75rem 1.5rem 1.5rem;
  }
}
