/* Authentication views stylesheet (Login, Register, Password Reset) */

.auth-page {
  min-height: calc(100vh - 420px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 20px;
  background: linear-gradient(180deg, var(--surface) 0%, #ffffff 100%);
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(17, 39, 84, 0.08);
  padding: 40px 32px;
}

@media (max-width: 576px) {
  .auth-page {
    padding: 36px 16px;
  }
  .auth-card {
    padding: 28px 20px;
    border-radius: var(--radius);
  }
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--tint);
  border-radius: 50%;
  margin-bottom: 16px;
}

.auth-badge img {
  width: 26px;
  height: 26px;
  display: block;
}

.auth-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.auth-header p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Alert / validation summary */
.auth-alert-danger,
.validation-summary-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.auth-alert-danger ul,
.validation-summary-errors ul {
  margin: 0;
  padding-inline-start: 20px;
}

.auth-alert-info {
  background: var(--tint);
  border: 1px solid #bfdbfe;
  color: var(--blue);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: center;
}

.validation-summary-valid {
  display: none !important;
}

/* Form fields */
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.auth-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
}

.auth-link {
  font-size: 12.5px;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.auth-link:hover {
  color: var(--light-blue);
  text-decoration: underline;
}

.auth-input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input::placeholder {
  color: var(--faint);
}

.auth-input:focus {
  border-color: var(--light-blue);
  box-shadow: 0 0 0 3px rgba(103, 168, 222, 0.25);
}

.auth-input.input-validation-error {
  border-color: #dc2626;
  background: #fffafa;
}

.auth-hint {
  font-size: 12px;
  color: var(--muted);
}

.auth-error,
.field-validation-error {
  font-size: 12.5px;
  color: #dc2626;
  font-weight: 500;
  margin-top: 4px;
  display: block;
}

.field-validation-valid {
  display: none;
}

/* Checkbox */
.auth-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  user-select: none;
}

.auth-check-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--navy);
  border-radius: 4px;
  margin: 0;
}

.auth-check-label {
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
}

/* Submit and Action Buttons */
.auth-btn-primary {
  width: 100%;
  min-height: 48px;
  background: var(--navy);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease, transform 0.1s ease;
}

.auth-btn-primary:hover {
  background: var(--navy-dark);
}

.auth-btn-primary:active {
  transform: scale(0.99);
}

/* Separator / Divider */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 22px 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--line);
}

.auth-divider span {
  padding: 0 12px;
}

/* Google SSO Button */
.auth-google-btn {
  width: 100%;
  min-height: 48px;
  background: #ffffff;
  color: #1f2937;
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-google-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.auth-google-btn svg {
  flex-shrink: 0;
}

/* Staff Login Button */
.auth-staff-btn {
  width: 100%;
  min-height: 44px;
  background: transparent;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border: 1.5px dashed var(--line-strong);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.auth-staff-btn:hover {
  background: var(--tint);
  border-color: var(--blue);
  color: var(--navy);
}

/* Card Footer / Switch links */
.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}

.auth-footer a {
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  margin-inline-start: 4px;
}

.auth-footer a:hover {
  color: var(--light-blue);
  text-decoration: underline;
}
