/* Auth pages — login & register (uses landing.css variables) */

.auth-page {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
}

.auth-page__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 48px;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-xl);
}

.auth-card--wide { max-width: 640px; }

.auth-card__title {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--slate);
  letter-spacing: -.02em;
}

.auth-card__subtitle {
  margin: 0 0 28px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

.auth-error {
  padding: 12px 16px;
  margin-bottom: 20px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #b91c1c;
  font-size: 14px;
}

.auth-success {
  padding: 12px 16px;
  margin-bottom: 20px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  color: #047857;
  font-size: 14px;
  font-weight: 600;
}

.auth-form { display: flex; flex-direction: column; gap: 18px; }

.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 6px;
}

.auth-field label span.req { color: var(--amber-d); }

.auth-field input,
.auth-field textarea,
.auth-field select {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--slate);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.auth-field input:focus,
.auth-field textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}

.auth-field textarea { min-height: 80px; resize: vertical; }

.auth-field input[type="file"] {
  padding: 10px 12px;
  background: var(--white);
  cursor: pointer;
}

.auth-field-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.auth-tags {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.auth-field--tag input { font-size: 14px; }

.auth-field--loc { position: relative; }

.reg-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-xl);
  z-index: 50;
  max-height: 220px;
  overflow-y: auto;
}

.reg-dropdown.is-open { display: block; }

.reg-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  color: var(--slate);
  transition: background .15s;
}

.reg-dropdown__item:hover { background: var(--surface); }
.reg-dropdown__item svg { color: var(--amber); flex-shrink: 0; }
.reg-dropdown__item b { color: var(--amber-d); font-weight: 700; }

.auth-hours-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--slate);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}

.auth-hours-btn:hover {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245,158,11,.12);
}

.auth-hours-btn svg { color: var(--amber-d); flex-shrink: 0; }

/* Working hours modal */
.hours-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
}

.hours-modal.is-open { display: block; }

.hours-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(4px);
}

.hours-modal__dialog {
  position: relative;
  width: min(480px, calc(100% - 32px));
  margin: 80px auto 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.hours-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.hours-modal__header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--slate);
}

.hours-modal__close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0 4px;
}

.hours-modal__body { padding: 20px 24px; }

.hours-modal__label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate);
}

.hours-modal__days {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.hours-day {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
  cursor: pointer;
  user-select: none;
}

.hours-day input { accent-color: var(--amber-d); }

.hours-day--sun { border-color: rgba(245,158,11,.35); }

.hours-modal__closed {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
  cursor: pointer;
}

.hours-modal__closed input { accent-color: var(--amber-d); }

.hours-modal__times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hours-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.hours-modal__cancel,
.hours-modal__save {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  border-radius: 8px;
  cursor: pointer;
  border: none;
}

.hours-modal__cancel {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.hours-modal__save {
  background: linear-gradient(135deg, var(--amber), var(--amber-d));
  color: var(--navy);
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.auth-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.auth-submit {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--amber), var(--amber-d));
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,158,11,.35);
}

.auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}

.auth-switch a {
  color: var(--indigo);
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .auth-card { padding: 28px 20px; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-tags { grid-template-columns: 1fr; }
  .hours-modal__times { grid-template-columns: 1fr; }
  .hours-modal__dialog { margin-top: 48px; }
}
