/* auth.css (Faza B) — Stil minimal për login/register/dashboard test.
   UI i plotë vjen në fazat e mëvonshme — logjika para bukurisë. */

* { box-sizing: border-box; }

body.auth-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #f3f4f6;
  color: #111827;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  margin: 16px;
  padding: 28px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.auth-card h1 { margin: 0 0 4px; font-size: 1.4rem; }
.auth-card h2 { margin: 0 0 20px; font-size: 1.05rem; font-weight: 500; color: #4b5563; }

.auth-card label {
  display: block;
  margin: 14px 0 4px;
  font-size: 0.9rem;
  font-weight: 600;
}

.auth-card input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
}

.auth-card input:focus {
  outline: 2px solid #1a73e8;
  outline-offset: 1px;
  border-color: #1a73e8;
}

.auth-card button {
  width: 100%;
  margin-top: 20px;
  padding: 11px;
  border: 0;
  border-radius: 8px;
  background: #1a73e8;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.auth-card button:disabled { opacity: 0.6; cursor: wait; }

.form-error {
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fde8e8;
  color: #9b1c1c;
  font-size: 0.9rem;
}

.form-info {
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #e6f4ea;
  color: #1e7e34;
  font-size: 0.9rem;
}

.auth-switch { margin-top: 18px; font-size: 0.9rem; text-align: center; }
.auth-switch a { color: #1a73e8; }

.password-field { position: relative; }
.password-field input { padding-right: 42px; }
.auth-card button.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  left: auto;
  transform: translateY(-50%);
  width: auto;
  margin-top: 0;
  background: none;
  border: none;
  color: inherit;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  opacity: .6;
}
.auth-card button.password-toggle:hover { opacity: 1; }

.remember-me {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 500 !important;
  font-size: 0.88rem !important;
  cursor: pointer;
}
.remember-me input { width: auto !important; accent-color: #1a73e8; cursor: pointer; }

/* ── iOS: fushat me shkronja < 16px e zmadhojnë faqen kur preken (dhe faqja mbetet
   e zmadhuar/e prerë djathtas). Në ekrane me prekje → gjithmonë 16px. ── */
@media (pointer: coarse), (max-width: 768px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
  select,
  textarea { font-size: 16px !important; }
}

/* ── Harrova fjalëkalimin: udhëzim, këshilla, "Ridërgo kodin" ── */
.auth-hint { margin: 4px 0 0; font-size: 0.88rem; color: #4b5563; line-height: 1.45; }
.auth-tips {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  font-size: 0.85rem;
  color: #4b5563;
}
.auth-tips ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.45; }
.auth-tips li + li { margin-top: 4px; }
.auth-card button.auth-link-btn {
  width: auto;
  margin-top: 10px;
  padding: 6px 0;
  background: none;
  color: #1a73e8;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
}
.auth-card button.auth-link-btn:disabled { color: #9ca3af; text-decoration: none; cursor: default; opacity: 1; }

/* ── Hyrje me passkey (Face ID / gisht) ── */
.auth-or { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; color: #9ca3af; font-size: 0.85rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: #e5e7eb; }
.auth-card button.passkey-btn {
  margin-top: 12px;
  background: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
}
.auth-card button.passkey-btn:hover { background: #f9fafb; }

/* 📬 Njoftimi pas dërgimit të kodit (Harrova fjalëkalimin): i dukshëm në krye, me këshillën për Spam. */
.auth-notice {
  margin: 4px 0 2px;
  padding: 12px 14px;
  background: #fff8e8;
  border: 1px solid #f3c56b;
  border-radius: 12px;
  color: #3d2c06;
  font-size: 0.9rem;
  line-height: 1.45;
}
.auth-notice > strong { display: block; font-size: 0.98rem; margin-bottom: 4px; }
.auth-notice p { margin: 0; }
.auth-notice__spam {
  margin-top: 8px !important;
  padding-top: 8px;
  border-top: 1px dashed #f0cf8e;
}
