/*
 * HairCommerce Platform — Tenant Login Page Styles
 * Design system: primary #1B3A5C | secondary #2E6DA4 | accent #C0392B
 * Mobile-first (360 px base), 8 px spacing grid, Stripe-inspired card.
 * Mirrors platform-login.css — class prefix: hc-tl- (tenant-login).
 */

/* -------------------------------------------------------------------------
 * Reset / base
 * ---------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* -------------------------------------------------------------------------
 * Body / background
 * ---------------------------------------------------------------------- */
.hc-tenant-login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Segoe UI", Arial, Roboto, sans-serif;
  font-size: 16px;           /* 16 px minimum prevents iOS zoom on focus */
  line-height: 1.5;
  color: #1a1a2e;
  background: linear-gradient(150deg, #0d1f36 0%, #1B3A5C 60%, #2E6DA4 100%);
  padding: 16px;
}

/* -------------------------------------------------------------------------
 * Outer wrapper (centres the card vertically + horizontally)
 * ---------------------------------------------------------------------- */
.hc-tl-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* -------------------------------------------------------------------------
 * Card
 * ---------------------------------------------------------------------- */
.hc-tl-card {
  width: 100%;
  max-width: 432px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.10),
    0 8px 24px rgba(0, 0, 0, 0.18);
  padding: 40px 32px 32px;
}

/* -------------------------------------------------------------------------
 * Branding strip
 * ---------------------------------------------------------------------- */
.hc-tl-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.hc-tl-brand__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #2E6DA4;
  line-height: 1;
}

.hc-tl-brand__icon svg {
  width: 24px;
  height: 24px;
}

.hc-tl-brand__name {
  font-size: 18px;
  font-weight: 700;
  color: #1B3A5C;
  letter-spacing: -0.3px;
}

/* -------------------------------------------------------------------------
 * Headings
 * ---------------------------------------------------------------------- */
.hc-tl-title {
  font-size: 24px;
  font-weight: 700;
  color: #1B3A5C;
  margin-bottom: 8px;
  letter-spacing: -0.4px;
}

.hc-tl-subtitle {
  font-size: 14px;
  color: #5a6a7e;
  margin-bottom: 24px;
}

/* -------------------------------------------------------------------------
 * Alert / error banner
 * ---------------------------------------------------------------------- */
.hc-tl-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.hc-tl-alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.hc-tl-alert--warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.hc-tl-alert__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1.4;
}

.hc-tl-alert__icon svg {
  width: 16px;
  height: 16px;
}

/* -------------------------------------------------------------------------
 * Form fields
 * ---------------------------------------------------------------------- */
.hc-tl-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hc-tl-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hc-tl-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.hc-tl-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;          /* 16 px prevents iOS auto-zoom */
  font-family: inherit;
  color: #1a1a2e;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 44px;          /* touch target */
}

.hc-tl-input:focus {
  border-color: #2E6DA4;
  box-shadow: 0 0 0 3px rgba(46, 109, 164, 0.18);
}

.hc-tl-input::placeholder {
  color: #9ca3af;
}

/* -------------------------------------------------------------------------
 * Remember me checkbox
 * ---------------------------------------------------------------------- */
.hc-tl-remember {
  margin-top: -4px;
}

.hc-tl-remember__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  user-select: none;
  min-height: 44px;          /* touch target */
}

.hc-tl-remember__label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2E6DA4;
  flex-shrink: 0;
  cursor: pointer;
}

/* -------------------------------------------------------------------------
 * Submit button
 * ---------------------------------------------------------------------- */
.hc-tl-btn {
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  color: #ffffff;
  background: #1B3A5C;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.2px;
  transition: background 0.15s ease, transform 0.1s ease;
}

.hc-tl-btn:hover {
  background: #2E6DA4;
}

.hc-tl-btn:active {
  background: #163155;
  transform: translateY(1px);
}

.hc-tl-btn:focus-visible {
  outline: 3px solid rgba(46, 109, 164, 0.5);
  outline-offset: 2px;
}

/* -------------------------------------------------------------------------
 * Footer note
 * ---------------------------------------------------------------------- */
.hc-tl-footer {
  margin-top: 24px;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
}

/* -------------------------------------------------------------------------
 * Responsive — tablet and up (768 px)
 * ---------------------------------------------------------------------- */
@media (min-width: 768px) {
  .hc-tl-card {
    padding: 48px 40px 40px;
  }

  .hc-tl-title {
    font-size: 28px;
  }
}
