/**
 * Tenant login — Social HR brand surface
 * Scoped overrides for .oh-auth / .oh-auth-card
 */
:root {
  --shr-sky: #38b6e8;
  --shr-sky-dark: #1a9fd4;
  --shr-sky-soft: #e8f4fa;
  --shr-teal: #14b8a6;
  --shr-ink: #0f2744;
  --shr-slate: #3d4f66;
  --shr-muted: #6b7a90;
  --shr-white: #ffffff;
  --shr-paper: #f5fafd;
  --shr-mist: #e8f4fa;
  --shr-radius: 16px;
  --shr-radius-sm: 12px;
  --shr-shadow: 0 8px 30px rgba(15, 39, 68, 0.08);
  --shr-font-ui: "DIN Next", "Segoe UI", Tahoma, sans-serif;
  --shr-font-display: "DIN Next", "Segoe UI", Tahoma, sans-serif;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--shr-font-ui);
  color: var(--shr-slate);
  background: var(--shr-paper);
  -webkit-font-smoothing: antialiased;
}

#main {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(56, 182, 232, 0.22), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(20, 184, 166, 0.14), transparent 36%),
    linear-gradient(180deg, #eef7fc 0%, var(--shr-paper) 48%, #ffffff 100%);
}

.oh-auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.oh-auth-card {
  width: min(420px, 100%);
  max-width: 420px;
  margin: 0;
  padding: 2rem 1.75rem 1.75rem;
  border: 1px solid rgba(15, 39, 68, 0.08);
  border-radius: var(--shr-radius);
  background: var(--shr-white);
  box-shadow: var(--shr-shadow);
}

.shr-login__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.35rem;
  text-decoration: none;
  color: var(--shr-ink);
}

.shr-login__brand:hover {
  color: var(--shr-ink);
  text-decoration: none;
}

.shr-login__mark {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  display: block;
}

.shr-login__wordmark {
  font-family: var(--shr-font-display);
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--shr-ink);
}

.shr-login__wordmark-accent {
  color: var(--shr-sky);
}

.oh-auth-card .oh-onboarding-card__title,
.oh-auth-card .shr-login__title {
  margin: 0 0 0.35rem;
  font-family: var(--shr-font-display);
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--shr-ink);
  text-align: center;
}

.oh-auth-card .text-muted,
.oh-auth-card .shr-login__lead {
  margin: 0 0 1.25rem;
  color: var(--shr-muted);
  font-size: 0.92rem;
  text-align: center;
  line-height: 1.45;
}

.oh-auth-card .oh-label {
  color: var(--shr-ink);
  font-weight: 650;
  font-size: 0.88rem;
}

.oh-auth-card .oh-input {
  border: 1.5px solid rgba(15, 39, 68, 0.14);
  border-radius: var(--shr-radius-sm);
  background: var(--shr-white);
  color: var(--shr-slate);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.oh-auth-card .oh-input:focus {
  outline: none;
  border-color: var(--shr-sky);
  box-shadow: 0 0 0 3px rgba(56, 182, 232, 0.2);
}

.oh-auth-card .oh-btn--secondary.oh-onboarding-card__button,
.oh-auth-card .shr-login__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  border: 0;
  border-radius: var(--shr-radius-sm);
  background: var(--shr-sky) !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(26, 159, 212, 0.28);
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.oh-auth-card .oh-btn--secondary.oh-onboarding-card__button:hover,
.oh-auth-card .shr-login__submit:hover {
  background: var(--shr-sky-dark) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(56, 182, 232, 0.28);
}

.oh-auth-card .oh-link--secondary {
  color: var(--shr-sky-dark);
  font-weight: 600;
}

.oh-auth-card .oh-link--secondary:hover {
  color: var(--shr-sky);
}

.oh-auth-card .oh-password-input--toggle {
  color: var(--shr-muted);
}

.oh-auth-card .oh-password-input--toggle:hover {
  color: var(--shr-ink);
}

@media (max-width: 767.98px) {
  .oh-auth-card {
    padding: 1.5rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oh-auth-card .oh-input,
  .oh-auth-card .oh-btn--secondary.oh-onboarding-card__button {
    transition: none;
  }
}
