/* Dynamiqo Auth pages */

:root {
  --ink: #11191d;
  --ink-deep: #071014;
  --teal: #16d6b5;
  --blue: #3e8cff;
  --bg: #e8eef1;
  --white: #ffffff;
  --muted: #647177;
  --line: #d5dee2;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body.auth-body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 55% 45% at 12% 18%, rgba(22, 214, 181, 0.16), transparent 58%),
    radial-gradient(ellipse 45% 40% at 92% 82%, rgba(62, 140, 255, 0.12), transparent 55%),
    linear-gradient(180deg, #f4f7f8 0%, var(--bg) 100%);
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.auth-shell {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  background: var(--white);
  border: 1px solid rgba(213, 222, 226, 0.9);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 28px 64px rgba(7, 16, 20, 0.12);
}

.auth-visual {
  position: relative;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(22, 214, 181, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 45% at 100% 100%, rgba(62, 140, 255, 0.14), transparent 50%),
    linear-gradient(165deg, #071014 0%, #0c181d 55%, #0a1519 100%);
  color: #fff;
  padding: 36px 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  min-height: 560px;
}

.auth-brand {
  display: block;
  width: fit-content;
  line-height: 0;
  text-decoration: none;
}

.auth-brand img {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(240px, 100%);
  object-fit: contain;
  object-position: left center;
}

.auth-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-visual h1 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: #fff;
}

.auth-visual p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.65;
  font-size: 0.95rem;
  max-width: 36ch;
}

.auth-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.auth-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
}

.auth-points i {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 214, 181, 0.18);
  flex-shrink: 0;
}

.auth-note {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.38);
}

.auth-panel {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}

.auth-panel h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.auth-panel .lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  color: var(--ink);
  background: #f7fafb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-form input:focus {
  outline: 0;
  border-color: rgba(22, 214, 181, 0.75);
  box-shadow: 0 0 0 3px rgba(22, 214, 181, 0.16);
  background: var(--white);
}

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--muted);
}

.auth-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 0.84rem;
  color: var(--muted);
}

.auth-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--teal);
}

.auth-row a {
  color: var(--ink-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-submit {
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--teal);
  color: var(--ink-deep);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.auth-submit:hover {
  filter: brightness(1.05);
}

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

.auth-alt {
  margin: 22px 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.auth-alt a {
  color: var(--ink-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-back {
  margin-top: 16px;
  text-align: center;
  font-size: 0.8rem;
}

.auth-back a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-error {
  display: none;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(217, 119, 6, 0.12);
  color: #9a5b00;
  font-size: 0.82rem;
}

.auth-error.show { display: block; }

.auth-google {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.auth-google:hover {
  background: #f7fafb;
  border-color: #c5d0d5;
}

.auth-google:disabled,
.auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-google.is-loading {
  opacity: 0.75;
}

.auth-google-icon {
  flex-shrink: 0;
}

.auth-demo-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  margin-top: 10px;
  border: 1px solid rgba(22, 214, 181, 0.55);
  border-radius: 10px;
  background: rgba(22, 214, 181, 0.08);
  color: #0c695c;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.auth-demo-btn:hover {
  background: rgba(22, 214, 181, 0.18);
  border-color: var(--teal);
  transform: translateY(-1px);
}

.auth-session-card {
  background: #f0fdf9;
  border: 1px solid rgba(22, 214, 181, 0.4);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 14px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: fadeIn 0.2s ease-out;
}

.auth-session-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.auth-session-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0d826e;
}

.auth-session-user {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.auth-session-enter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink-deep);
  color: #fff;
  border: 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}

.auth-session-enter-btn:hover {
  background: #000;
  transform: translateY(-1px);
}

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

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

.auth-row a {
  color: var(--ink-deep);
  font-weight: 700;
}

@media (max-width: 820px) {
  body.auth-body { padding: 20px 14px; }

  .auth-shell {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .auth-visual {
    min-height: auto;
    padding: 28px 24px 24px;
    gap: 24px;
  }

  .auth-brand img {
    height: 42px;
    max-width: min(200px, 100%);
  }

  .auth-copy { justify-content: flex-start; }

  .auth-visual h1 { font-size: 1.55rem; }

  .auth-points { margin-top: 20px; }

  .auth-panel { padding: 28px 24px 32px; }
}
