/* Objectiv-branded sign-in on a-zing.org (matches project-objectiv.com login) */

:root {
  --obj-brand: #0f766e;
  --obj-brand-deep: #115e59;
  --obj-ink: #0f172a;
  --obj-muted: #64748b;
  --obj-line: rgba(15, 23, 42, 0.08);
  --obj-surface: #f8fafc;
  --obj-accent: #0d9488;
  --obj-display: "Bricolage Grotesque", system-ui, sans-serif;
  --obj-body: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.obj-auth-page {
  font-family: var(--obj-body);
  color: var(--obj-ink);
  background: #f6f8fb;
  -webkit-font-smoothing: antialiased;
}

.obj-auth-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(13, 148, 136, 0.12), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.obj-auth-bg-grid {
  position: fixed;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(var(--obj-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--obj-line) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.obj-auth-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 32px);
  background: rgba(246, 248, 251, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--obj-line);
}

.obj-auth-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--obj-ink);
  font-family: var(--obj-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.obj-auth-header-brand img {
  border-radius: 10px;
  object-fit: cover;
}

.obj-auth-header-meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--obj-muted);
}

.obj-auth-header-meta strong {
  color: var(--obj-ink);
  font-weight: 600;
}

.obj-auth-main {
  position: relative;
  z-index: 1;
  padding: clamp(12px, 3vw, 28px) clamp(12px, 3vw, 24px) 48px;
}

.obj-auth-split {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
  min-height: calc(100vh - 140px);
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.1);
  border: 1px solid var(--obj-line);
}

@media (max-width: 900px) {
  .obj-auth-split {
    grid-template-columns: 1fr;
    min-height: auto;
    border-radius: 16px;
  }
}

.obj-auth-brand {
  position: relative;
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.75rem, 4vw, 2.75rem);
  color: #ecfdf5;
  background:
    radial-gradient(ellipse 120% 80% at 100% 0%, rgba(45, 212, 191, 0.22), transparent 55%),
    linear-gradient(165deg, #0f766e 0%, #115e59 42%, #0c4a6e 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.obj-auth-brand-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.obj-auth-brand-shapes span {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.obj-auth-brand-shapes span:nth-child(1) {
  width: 280px;
  height: 280px;
  top: -100px;
  right: -60px;
}

.obj-auth-brand-shapes span:nth-child(2) {
  width: 160px;
  height: 160px;
  bottom: 15%;
  left: -50px;
}

.obj-auth-brand-shapes span:nth-child(3) {
  width: 90px;
  height: 90px;
  bottom: 8%;
  right: 18%;
}

.obj-auth-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 22rem;
}

.obj-auth-brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.75rem;
}

.obj-auth-brand-mark img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px;
}

.obj-auth-brand-mark strong {
  font-family: var(--obj-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.obj-auth-brand h1 {
  margin: 0 0 12px;
  font-family: var(--obj-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.obj-auth-brand-lede {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(236, 253, 245, 0.85);
}

.obj-auth-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.75rem;
}

.obj-auth-badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ccfbf1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.obj-auth-brand-links {
  margin: 0;
  font-size: 0.8125rem;
}

.obj-auth-brand-links a {
  color: #99f6e4;
  font-weight: 600;
  text-decoration: none;
}

.obj-auth-brand-links a:hover {
  text-decoration: underline;
}

.obj-auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.75rem);
  background: #fff;
}

.obj-auth-form-inner {
  width: 100%;
  max-width: 380px;
}

.obj-auth-eyebrow {
  margin: 0 0 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--obj-accent);
}

.obj-auth-form-inner > h2 {
  margin: 0 0 8px;
  font-family: var(--obj-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.obj-auth-intro {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--obj-muted);
}

.obj-auth-return {
  margin: 0 0 1.5rem;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(13, 148, 136, 0.06);
  border: 1px solid rgba(13, 148, 136, 0.12);
  font-size: 0.8125rem;
  color: var(--obj-muted);
  line-height: 1.45;
}

.obj-auth-return a {
  color: var(--obj-accent);
  font-weight: 600;
  text-decoration: none;
}

.obj-auth-return a:hover {
  text-decoration: underline;
}

.obj-auth-section-title {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--obj-muted);
}

.obj-auth-social {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 1.25rem;
}

@media (max-width: 420px) {
  .obj-auth-social {
    grid-template-columns: 1fr;
  }
}

.obj-auth-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--obj-line);
  background: var(--obj-surface);
  color: var(--obj-ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.obj-auth-social-btn:hover {
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  background: #fff;
}

.obj-auth-social-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.obj-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1.25rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--obj-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.obj-auth-divider::before,
.obj-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--obj-line);
}

.obj-auth-form .obj-auth-field {
  margin-bottom: 14px;
}

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

.obj-auth-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--obj-ink);
}

.obj-auth-forgot {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--obj-accent);
  text-decoration: none;
}

.obj-auth-forgot:hover {
  text-decoration: underline;
}

.obj-auth-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--obj-line);
  font: inherit;
  font-size: 0.9375rem;
  color: var(--obj-ink);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.obj-auth-input:focus {
  outline: none;
  border-color: rgba(13, 148, 136, 0.45);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.obj-auth-password-wrap {
  position: relative;
}

.obj-auth-password-wrap .obj-auth-input {
  padding-right: 44px;
}

.obj-auth-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--obj-muted);
  cursor: pointer;
}

.obj-auth-password-toggle:hover {
  background: var(--obj-surface);
  color: var(--obj-ink);
}

.obj-auth-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 18px;
  font-size: 0.875rem;
  color: var(--obj-muted);
}

.obj-auth-checkbox-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--obj-brand);
}

.obj-auth-submit {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, #0d9488 0%, var(--obj-brand) 100%);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.28);
  transition: transform 0.12s, box-shadow 0.12s;
}

.obj-auth-submit:hover {
  box-shadow: 0 10px 28px rgba(13, 148, 136, 0.35);
}

.obj-auth-submit:active {
  transform: translateY(1px);
}

.obj-auth-footer-line {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--obj-muted);
}

.obj-auth-footer-line a {
  color: var(--obj-accent);
  font-weight: 600;
  text-decoration: none;
}

.obj-auth-footer-line a:hover {
  text-decoration: underline;
}

.obj-auth-trust {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--obj-line);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--obj-muted);
}

.obj-auth-page > .obj-auth-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px 16px 32px;
  font-size: 0.8125rem;
  color: var(--obj-muted);
}

.obj-auth-page > .obj-auth-footer a {
  color: var(--obj-muted);
  text-decoration: none;
  font-weight: 500;
}

.obj-auth-page > .obj-auth-footer a:hover {
  color: var(--obj-accent);
}

.obj-auth-toasts {
  position: fixed;
  top: 72px;
  right: 16px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
}

.obj-auth-toast {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  background: #fff;
  border: 1px solid var(--obj-line);
}

.obj-auth-toast-error {
  border-color: rgba(220, 38, 38, 0.25);
  background: #fef2f2;
  color: #991b1b;
}

.obj-auth-toast-success {
  border-color: rgba(13, 148, 136, 0.25);
  background: #f0fdfa;
  color: #115e59;
}
