/* OrbePay Auth — login / cadastro */
:root {
  --bg: #050b16;
  --surface: #0c1628;
  --surface-2: #122038;
  --ink: #eef5ff;
  --ink-soft: #a9bdd6;
  --ink-muted: #7d93ad;
  --line: rgba(0, 184, 255, 0.18);
  --accent: #0099ff;
  --accent-2: #00b8ff;
  --accent-3: #33d6ff;
  --accent-hot: #0066cc;
  --danger: #ff5c6c;
  --font: "Syne", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --radius: 16px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-hover: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 180ms;
  --dur-med: 320ms;
  --dur-slow: 380ms;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 70% 45% at 50% -10%, rgba(0, 153, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 100%, rgba(0, 100, 200, 0.12), transparent 50%),
    linear-gradient(180deg, #07111f 0%, #050b16 50%, #0a1830 100%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  gap: 28px;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-logo img {
  height: 56px;
  width: auto;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0, 153, 255, 0.35));
}

.auth-card {
  width: min(440px, 100%);
  background: rgba(12, 22, 40, 0.92);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px 28px 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.auth-card h1 {
  font-family: var(--font);
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.auth-lead {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-bottom: 26px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.field label .req {
  color: var(--danger);
  margin-left: 2px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap .ico {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--ink-muted);
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  padding: 0 44px 0 44px;
  outline: none;
  transition:
    border-color var(--dur-fast, 180ms) cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow var(--dur-fast, 180ms) cubic-bezier(0.4, 0, 0.2, 1),
    background var(--dur-fast, 180ms) cubic-bezier(0.4, 0, 0.2, 1);
}

.input-wrap input::placeholder {
  color: rgba(169, 189, 214, 0.45);
}

.input-wrap input:focus {
  border-color: rgba(0, 184, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.15);
  background: rgba(0, 153, 255, 0.06);
}

.input-wrap .toggle-pass {
  position: absolute;
  right: 10px;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.input-wrap .toggle-pass:hover {
  color: var(--accent-3);
  background: rgba(0, 153, 255, 0.1);
}

.field-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
}

.link-accent {
  color: var(--accent-3);
  font-size: 0.86rem;
  font-weight: 700;
}

.link-accent:hover {
  color: #7ae0ff;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.45;
  margin-top: 2px;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.check-row a {
  color: var(--accent-3);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition:
    transform var(--dur-fast, 180ms) cubic-bezier(0.4, 0, 0.2, 1),
    filter var(--dur-fast, 180ms) cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow var(--dur-fast, 180ms) cubic-bezier(0.4, 0, 0.2, 1),
    border-color var(--dur-fast, 180ms) cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  width: 100%;
  height: 50px;
  margin-top: 6px;
  background: linear-gradient(135deg, #33d6ff 0%, #0099ff 52%, #0066cc 100%);
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 10px 28px rgba(0, 153, 255, 0.4);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.auth-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.btn-ghost {
  height: 44px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-size: 0.88rem;
  padding: 0 12px;
}

.btn-ghost:hover {
  border-color: rgba(0, 184, 255, 0.45);
  color: var(--accent-3);
}

.auth-error {
  display: none;
  background: rgba(255, 92, 108, 0.12);
  border: 1px solid rgba(255, 92, 108, 0.35);
  color: #ffb0b8;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.86rem;
  font-weight: 600;
}

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

.auth-ok {
  display: none;
  background: rgba(0, 184, 255, 0.12);
  border: 1px solid rgba(0, 184, 255, 0.35);
  color: #9adfff;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.86rem;
  font-weight: 600;
}

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

.auth-spam {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #fde68a;
  font-size: 0.86rem;
  line-height: 1.5;
}

.auth-spam strong {
  color: #fbbf24;
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 560px) {
  .auth-card {
    padding: 26px 18px 22px;
    border-radius: 18px;
  }

  .auth-logo img {
    height: 48px;
  }

  .auth-secondary {
    grid-template-columns: 1fr;
  }
}
