/* genial.oklac.com: the Genial chat's glass and light (genial-imersivo.css) on the account pages. */
:root {
  --c1: #38c8ff;
  --c2: #2f6bff;
  --c3: #7a62ff;
  --c4: #bfeaff;
  --field: #070a12;
  --text: #f4f8ff;
  --muted: #a9b6cf;
  --glass: rgba(12, 24, 52, 0.62);
  --border: rgba(135, 192, 255, 0.22);
  --rim: linear-gradient(135deg, rgba(210, 235, 255, 0.6), rgba(255, 255, 255, 0.08) 28%, rgba(255, 255, 255, 0) 52%, rgba(90, 170, 255, 0.5));
  --inner: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.28), inset 0 0 24px rgba(120, 180, 255, 0.07);
  --depth: 0 1px 2px rgba(0, 0, 0, 0.25), 0 14px 44px rgba(0, 8, 30, 0.5);
  --input: rgba(255, 255, 255, 0.06);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --art: none;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --c1: #1aa8ff;
    --c2: #2b5cff;
    --c3: #6a4dff;
    --field: #eef3fb;
    --text: #0d1526;
    --muted: #55617a;
    --glass: rgba(250, 253, 255, 0.72);
    --border: rgba(98, 162, 222, 0.3);
    --rim: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.2) 28%, rgba(255, 255, 255, 0) 52%, rgba(110, 180, 255, 0.6));
    --inner: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(255, 255, 255, 0.3), inset 0 0 22px rgba(255, 255, 255, 0.22);
    --depth: 0 1px 2px rgba(0, 30, 90, 0.06), 0 12px 36px rgba(0, 40, 120, 0.14);
    --input: rgba(255, 255, 255, 0.8);
    --art: brightness(0);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

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

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  font: 15px/1.5 Montserrat, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(60vmax 40vmax at 12% -8%, color-mix(in oklab, var(--c1) 16%, transparent), transparent 70%),
    radial-gradient(50vmax 40vmax at 100% 110%, color-mix(in oklab, var(--c3) 14%, transparent), transparent 70%),
    radial-gradient(40vmax 30vmax at 70% 40%, color-mix(in oklab, var(--c2) 7%, transparent), transparent 70%),
    var(--field);
  background-attachment: fixed;
}

.card {
  position: relative;
  width: min(420px, 100%);
  padding: 36px 32px 28px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--glass);
  backdrop-filter: blur(30px) saturate(170%);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  box-shadow: var(--inner), var(--depth);
  animation: rise 0.7s var(--ease) both;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--rim);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 26px; }
.brand img { display: block; filter: var(--art); user-select: none; -webkit-user-drag: none; }
.brand .g { width: 44px; height: 44px; }
.brand .word { height: 40px; width: auto; }

h1 { margin: 0 0 6px; font-size: 21px; font-weight: 600; text-align: center; letter-spacing: -0.01em; }
p.lead { margin: 0 0 24px; color: var(--muted); text-align: center; }

.stack { display: grid; gap: 12px; }

button, .button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  background: var(--input);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, opacity 0.2s;
}

button:hover:not(:disabled), .button:hover { transform: translateY(-1px); box-shadow: 0 6px 20px color-mix(in oklab, var(--c2) 22%, transparent); }
button:disabled { opacity: 0.55; cursor: progress; }

button.primary, .button.primary {
  border-color: transparent;
  color: #fff;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 46%),
    linear-gradient(140deg, var(--c1), var(--c2) 72%);
}

/* Entrar com OKLAC: the OKLAC blue, ring mark like a social button. */
button.oklac { border-color: transparent; color: #fff; background: linear-gradient(140deg, #3b82f6, #1d4ed8); }
.oklac img { width: 20px; height: 20px; }
.oklac-mark-k { display: none; }

.divider { display: flex; align-items: center; gap: 12px; margin: 6px 0; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }

input {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font: inherit;
  color: var(--text);
  background: var(--input);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus { border-color: var(--c1); box-shadow: 0 0 0 4px color-mix(in oklab, var(--c1) 20%, transparent); }

.who { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 18px; background: var(--input); }
.who img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.who .avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-weight: 700; background: linear-gradient(140deg, var(--c1), var(--c3)); }
.who strong { display: block; font-size: 14px; }
.who span { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }

.link { padding: 0; min-height: 0; border: 0; background: none; color: var(--c1); font-weight: 500; width: auto; justify-self: center; }
.link:hover:not(:disabled) { transform: none; box-shadow: none; text-decoration: underline; }

.message { min-height: 1.5em; margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.message.error { color: #ff7a8a; }

.foot { margin: 22px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.foot a { color: inherit; }

.check {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 46%), linear-gradient(140deg, var(--c1), var(--c2) 72%);
  box-shadow: 0 10px 30px color-mix(in oklab, var(--c2) 40%, transparent);
  animation: pop 0.6s var(--ease) 0.15s both;
}

[hidden] { display: none !important; }

@keyframes rise { from { opacity: 0; translate: 0 18px; scale: 0.97; } }
@keyframes pop { from { opacity: 0; scale: 0.6; } }

@media (prefers-reduced-motion: reduce) {
  .card, .check { animation: none; }
}
