/* OneCloud 360 — auth screen
   Calm, premium entry point that matches the product. */

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--brand-soft) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 90%, rgba(50, 160, 181, 0.08) 0%, transparent 50%),
    var(--canvas);
}

.auth-card {
  width: min(100%, 420px);
  padding: 36px 36px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.auth-brand {
  height: auto;
  width: 100%;
  padding: 0;
  margin: 0 0 32px;
  justify-content: center;
  pointer-events: none;
}

.auth-kicker {
  margin: 0 0 8px;
  text-align: center;
  color: var(--brand);
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-card h1 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-tight);
  margin: 0;
  color: var(--ink);
  text-align: center;
}

.auth-description {
  max-width: 29ch;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 8px auto 22px;
  text-align: center;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--brand-tint);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.auth-tab {
  border: 0;
  border-radius: 7px;
  padding: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition:
    background-color var(--duration) var(--ease),
    color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}
.auth-tab.active {
  background: var(--surface);
  color: var(--brand-dark);
  box-shadow: var(--shadow-sm);
}

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

.auth-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
}
.auth-field input {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--brand-mist);
  padding: 0 14px;
  color: var(--ink);
  font-size: 14px;
  outline: 0;
  transition:
    border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    background-color var(--duration) var(--ease);
}
.auth-field input:hover:not(:focus) {
  border-color: var(--line-strong);
}
.auth-field input:focus {
  border-color: var(--brand-light);
  box-shadow: var(--focus);
  background: var(--surface);
}
.auth-consent { color: var(--muted); font-size: 12px; line-height: 1.5; }
.auth-consent label { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.auth-consent input { flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--brand); }
.auth-consent a { color: var(--brand-dark); text-decoration: underline; }
.auth-consent p { margin: 6px 0 0 25px; font-size: 11px; }

.auth-error {
  min-height: 16px;
  color: var(--danger-ink);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

.auth-submit {
  width: 100%;
  height: 44px;
  font-size: 14px;
  margin-top: 4px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--brand-light) 0%, var(--brand) 100%);
  color: var(--brand-ink);
  border: 0;
  box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition:
    background var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    transform var(--duration-fast) var(--ease);
}
.auth-submit:hover {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-hover) 100%);
  box-shadow: var(--shadow-brand-lg);
}
.auth-submit:active {
  transform: translateY(1px);
}

.auth-footnote {
  margin: 20px 0 0;
  color: var(--muted-soft);
  font-size: 11.5px;
  line-height: 1.55;
}

.auth-provider-group {
  margin-top: 18px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-provider-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}
.auth-provider-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.auth-provider-button:hover {
  background: var(--canvas);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm, 0 4px 14px rgba(15, 23, 42, .08));
}
.auth-provider-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 30%, transparent);
  outline-offset: 2px;
}
.auth-provider-button:disabled {
  cursor: wait;
  opacity: .65;
}
.auth-provider-button svg {
  display: block;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}
.auth-provider-mark {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}
.auth-provider-note {
  margin: 11px 0 0;
  color: var(--muted-soft);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.auth-caption {
  position: fixed;
  bottom: 22px;
  color: var(--muted-soft);
  font-size: 11px;
  letter-spacing: 0.02em;
}
.auth-caption span {
  margin: 0 6px;
  color: var(--line-strong);
}

@media (max-width: 520px) {
  .auth-card {
    padding: 28px 22px;
  }
  .auth-brand {
    margin-bottom: 24px;
  }
  .auth-caption {
    bottom: 12px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-tab,
  .auth-field input,
  .auth-submit {
    transition: none;
  }
}
