/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
 * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 *= require_tree .
 *= require_self
 */

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

:root {
  color-scheme: light;
}

.platform-body {
  --font-sans: "Space Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --bg-base: #f6f7fb;
  --ink: #0f172a;
  --muted: #4b5563;
  --panel: #ffffff;
  --panel-border: #e2e8f0;
  --panel-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
  --panel-tint: #f1f5f9;
  --accent: #1f2937;
  --accent-soft: #e0e7ff;
  --accent-ink: #0f172a;
  --accent-glow: #94a3b8;
  --input-border: #cbd5f5;
  --input-bg: #ffffff;
  --input-focus: #111827;
  font-family: var(--font-sans);
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg-base);
  position: relative;
}

.platform-body::before,
.platform-body::after {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: -1;
}

.platform-body::before {
  background:
    radial-gradient(circle at 15% 20%, rgba(148, 163, 184, 0.35), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(226, 232, 240, 0.8), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(15, 23, 42, 0.06), transparent 45%);
}

.platform-body::after {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.35) 100%);
  opacity: 0.65;
}


.platform-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 20px;
}

.platform-auth-card {
  width: min(1040px, 100%);
  display: grid;
  gap: 32px;
  padding: 32px;
  border-radius: 32px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--panel-shadow);
}

.platform-auth-panel {
  background: var(--panel-tint);
  border-radius: 24px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
}

.platform-auth-panel::before {
  content: "";
  position: absolute;
  inset: -40% -10% 30% -10%;
  background: radial-gradient(circle at top, var(--accent-glow), transparent 65%);
  opacity: 0.35;
}

.platform-auth-panel > * {
  position: relative;
  z-index: 1;
}

.platform-auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  width: fit-content;
}

.platform-auth-tagline {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.platform-auth-lede {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}

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

.platform-auth-list-item {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--ink);
  font-size: 15px;
}

.platform-auth-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.75);
  margin-top: 6px;
}

.platform-auth-form {
  display: grid;
  gap: 16px;
  align-content: start;
}

.platform-auth-confirmation {
  gap: 14px;
}

.platform-auth-flash {
  display: grid;
  gap: 10px;
}

.platform-auth-flash-item {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
}

.platform-auth-flash-item.is-alert {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.platform-auth-flash-item.is-notice {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.platform-auth-title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
}

.platform-auth-subtitle {
  margin: 0;
  color: var(--muted);
}

.platform-auth-email {
  margin: 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--panel-tint);
  border: 1px solid var(--panel-border);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  word-break: break-word;
}

.platform-auth-note {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--panel-border);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.platform-auth-note p {
  margin: 0;
}

.platform-auth-fields {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.platform-auth-field {
  display: grid;
  gap: 8px;
}

.platform-auth-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.platform-auth-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  font-size: 15px;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.platform-auth-input:focus {
  outline: none;
  border-color: var(--input-focus);
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.platform-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.platform-auth-submit {
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 18px;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.platform-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 25px rgba(15, 23, 42, 0.2);
  filter: brightness(1.02);
}

.platform-auth-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.platform-auth-link:hover {
  text-decoration: underline;
}

@media (min-width: 960px) {
  .platform-auth-card {
    grid-template-columns: 1.05fr 0.95fr;
    padding: 40px;
  }
}

@media (max-width: 640px) {
  .platform-auth-card {
    padding: 24px;
  }

  .platform-auth-title {
    font-size: 28px;
  }

  .platform-auth-tagline {
    font-size: 24px;
  }
}
