/* ========================================================
   NesaMate Auth (Login & Daftar Akun Gmail via Supabase)
   ======================================================== */

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(30, 59, 47, 0.08);
  margin-bottom: 10px;
}

.auth-tab-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: #4b5563;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.auth-tab-btn.is-active {
  background: #1e3b2f;
  color: #faf7f0;
  box-shadow: 0 2px 8px rgba(30, 59, 47, 0.22);
}

.auth-panel {
  display: none;
  flex-direction: column;
  gap: 8px;
}

.auth-panel.is-active {
  display: flex;
}

.auth-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(30, 59, 47, 0.14);
  background: #f3f4f6;
  color: #1e3b2f;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.auth-input:focus {
  border-color: #1e3b2f;
  background: #ffffff;
}

.auth-status-msg {
  display: none;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 12px;
  line-height: 1.4;
}

.auth-status-msg.is-error {
  display: block;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.auth-status-msg.is-info {
  display: block;
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.auth-status-msg.is-success {
  display: block;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.auth-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 999px;
  border: none;
  background: #1e3b2f;
  color: #faf7f0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(30, 59, 47, 0.22);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.auth-submit-btn:active {
  transform: scale(0.98);
}

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-user-pill {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(30, 59, 47, 0.08);
  border: 1px solid rgba(30, 59, 47, 0.18);
  font-size: 13px;
  color: #1e3b2f;
}

.auth-user-pill.is-visible {
  display: flex;
}

.auth-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.auth-user-name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-user-email {
  font-size: 11px;
  color: #4b5563;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-btn-logout {
  border: none;
  background: transparent;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .auth-input {
    font-size: 16px; /* Cegah auto-zoom iOS Safari saat input difokuskan */
    padding: 10px 14px;
  }

  .auth-submit-btn {
    min-height: 44px;
    padding: 11px 18px;
  }
}
