/* Absentry — Auth pages (login, signup) */

:root {
  --auth-c-bg:       #f8fafc;
  --auth-c-surface:  #ffffff;
  --auth-c-border:   #e2e8f0;
  --auth-c-text:     #0f172a;
  --auth-c-text-2:   #475569;
  --auth-c-text-3:   #94a3b8;
  --auth-c-primary:  #1e40af;
  --auth-c-primary-2:#3b82f6;
  --auth-c-danger:   #ef4444;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--auth-c-bg);
  color: var(--auth-c-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .auth-shell { grid-template-columns: 1fr 1.1fr; }
}

/* LEFT: brand panel */
.auth-brand-panel {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 60%, #2563eb 100%);
  color: #fff;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(255,255,255,0.08), transparent 50%);
  pointer-events: none;
}
.auth-brand-panel > * { position: relative; }

.auth-brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}
.auth-brand .dot { color: #fca5a5; }

.auth-hero {
  margin-top: 2.5rem;
}
.auth-hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.auth-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
  max-width: 460px;
  margin: 0;
}
.auth-bullets {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.auth-bullets li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.92);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.45;
}
.auth-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #6ee7b7;
  font-weight: 800;
}

.auth-footer-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-top: 2rem;
}

/* Hide brand panel on mobile */
@media (max-width: 899px) {
  .auth-brand-panel { display: none; }
}

/* RIGHT: form panel */
.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}
.auth-card {
  width: 100%;
  max-width: 420px;
}
.auth-card-header {
  text-align: left;
  margin-bottom: 1.75rem;
}
.auth-card-mobile-brand {
  display: none;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--auth-c-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.auth-card-mobile-brand .dot { color: var(--auth-c-danger); }
@media (max-width: 899px) { .auth-card-mobile-brand { display: block; } }

.auth-card-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  color: var(--auth-c-text);
}
.auth-card-header p {
  font-size: 0.95rem;
  color: var(--auth-c-text-2);
  margin: 0;
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}
.auth-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--auth-c-text);
  margin-bottom: 0.4rem;
}
.auth-field input {
  width: 100%;
  padding: 0.72rem 0.875rem;
  border: 1.5px solid var(--auth-c-border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--auth-c-surface);
  color: var(--auth-c-text);
  transition: all 0.15s;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--auth-c-primary-2);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 0.7rem 0.875rem;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
  display: none;
}
.auth-error.show { display: block; }

.auth-submit {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--auth-c-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  margin-top: 0.25rem;
}
.auth-submit:hover:not(:disabled) {
  background: #1e3a8a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}
.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  font-size: 0.75rem;
  color: var(--auth-c-text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--auth-c-border);
}

.demo-card {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 1rem 1.125rem;
}
.demo-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0c4a6e;
}
.demo-card p {
  margin: 0 0 0.75rem;
  font-size: 0.825rem;
  color: #0369a1;
  line-height: 1.45;
}
.demo-card button {
  width: 100%;
  padding: 0.65rem 0.875rem;
  background: #fff;
  color: #0369a1;
  border: 1.5px solid #7dd3fc;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.demo-card button:hover {
  background: #e0f2fe;
  border-color: #38bdf8;
}

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--auth-c-text-2);
}
.auth-footer a {
  color: var(--auth-c-primary);
  font-weight: 600;
  text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }


/* =============================================================
   ACCEPT-INVITE ADDITIONS
   ============================================================= */

.auth-loading {
  padding: 2rem 0;
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
}

.auth-field-help {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 0.4rem;
  line-height: 1.5;
}
