/* =====================================================
   DesiERP Auth — Login (TUTA Logo Background)
   ===================================================== */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --border: #e5e7eb;
  --error: #dc2626;
  --radius-lg: 16px;
  --radius: 10px;
  --shadow: 0 6px 20px rgba(2, 6, 23, 0.08);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #111827;
    --ink: #e5e7eb;
    --muted: #9aa4b2;
    --primary: #3b82f6;
    --primary-600: #2563eb;
    --border: #1f2937;
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  }
}

/* ===== RESET ===== */

* { box-sizing: border-box; }

html, body { height: 100%; }

/* =====================================================
   TUTA WATERMARK BACKGROUND
   ===================================================== */

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);

  background-color: #f6f7f9;
  position: relative;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* TUTA Logo Watermark */

body::before {
  content: "";
  position: fixed;
  inset: 0;

  background: url("../logo.png") no-repeat center;
  background-size: 50%;   /* reduced size */

  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}

/* Ensure UI above watermark */

.shell,
.panel,
.card {
  position: relative;
  z-index: 1;
}

/* ===== LAYOUT ===== */

.shell {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.panel {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

/* ===== CARD ===== */

.card {
  width: 100%;
  max-width: 440px;

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);

  padding: 28px;

  backdrop-filter: blur(2px);
}

.card-h { margin: 2px 0 18px; }

.h {
  font-size: 1.5rem;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.sub {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ===== ALERT ===== */

.alert {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;

  border: 1px solid #fecaca;
  background: #fef2f2;
  color: var(--error);

  margin: 14px 0;
}

@media (prefers-color-scheme: dark) {
  .alert {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.35);
  }
}

.alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--error);
}

/* ===== FORM ===== */

.form {
  display: grid;
  gap: 14px;
}

.row {
  display: grid;
  gap: 8px;
}

.row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ===== INPUTS ===== */

input[type="text"],
input[type="tel"],
input[type="password"] {

  width: 100%;
  appearance: none;

  border: 1px solid var(--border);
  background: #e0f2fe;
  color: var(--ink);

  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 16px;

  transition: border-color .15s ease, box-shadow .15s ease;
}

input::placeholder {
  color: var(--muted);
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

/* ===== PIN BOXES ===== */

.pin {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.pin-box {

  width: 48px;
  text-align: center;

  padding: 12px 0;
  font-size: 20px;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: #e0f2fe;
}

@media (max-width: 420px) {

  .pin-box {
    width: 42px;
  }

}

/* ===== EXTRAS ===== */

.extras {
  margin-top: 2px;
}

.check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
}

/* ===== BUTTON ===== */

.btn {

  width: 100%;
  border: none;
  cursor: pointer;

  padding: 12px 16px;

  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;

  color: #fff;

  background: linear-gradient(180deg, var(--primary), var(--primary-600));

  box-shadow: 0 6px 14px rgba(29, 78, 216, 0.25);
}

.btn:hover {
  transform: translateY(-1px);
}

/* ===== LINKS ===== */

.alt {
  text-align: center;
  color: var(--muted);
  margin: 12px 0 0;
  font-size: 0.9rem;
}

.link {
  color: var(--primary);
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* ===== FOOTER ===== */

.footer {

  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);

  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;

  z-index: 5;
  user-select: none;
}

.footer .powered strong {
  color: var(--primary);
}