/* ==========================================================================
   RBytes Noivas — auth.css
   --------------------------------------------------------------------------
   Telas deslogadas de conta: login, cadastro, recuperação de senha e acesso
   negado. Segue a identidade da landing (vinho + champanhe + Cormorant
   Garamond nos títulos), com o cartão central sobre o fundo escuro.

   Carregado ANTES de mobile.css, que faz os ajustes de celular (seção 10).
   ========================================================================== */

:root {
  --rb-vinho-950: #2a0a18;
  --rb-vinho-900: #3f0f24;
  --rb-vinho-800: #5c1634;
  --rb-vinho-700: #7a1d44;
  --rb-vinho-600: #952552;
  --rb-vinho-500: #b02f63;
  --rb-vinho-400: #c9558a;
  --rb-vinho-300: #de8fb3;
  --rb-vinho-200: #efc3d8;
  --rb-vinho-100: #f8e4ee;
  --rb-vinho-050: #fdf4f8;

  --rb-ouro-700: #9a7a35;
  --rb-ouro-500: #c9a961;
  --rb-ouro-300: #e6d4a3;
  --rb-ouro-100: #f7efdc;

  --rb-ink-900: #241a1f;
  --rb-text: #2a2027;
  --rb-muted: #726671;
  --rb-line: #e9e1e6;

  --primary: var(--rb-vinho-600);

  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --rb-ease: cubic-bezier(.4, 0, .2, 1);
  --auth-navbar-h: 64px;

  --bs-danger: #952552; --bs-danger-rgb: 149, 37, 82;
  --bs-success: #3f7d5c; --bs-success-rgb: 63, 125, 92;
  --bs-warning: #c98a12; --bs-warning-rgb: 201, 138, 18;
  --bs-primary: #2a6f77; --bs-primary-rgb: 42, 111, 119;
  --bs-dark: #2a1f27; --bs-dark-rgb: 42, 31, 39;
  --bs-link-color: #952552; --bs-link-color-rgb: 149, 37, 82;
  --bs-link-hover-color: #7a1d44; --bs-link-hover-color-rgb: 122, 29, 68;
  --bs-danger-text-emphasis: #6b1a3b; --bs-danger-bg-subtle: #f8e4ee; --bs-danger-border-subtle: #efc3d8;
  --bs-success-text-emphasis: #2c5a42; --bs-success-bg-subtle: #e6f2ec; --bs-success-border-subtle: #bcdac9;
  --bs-warning-text-emphasis: #7d550b; --bs-warning-bg-subtle: #fbf1dc; --bs-warning-border-subtle: #efd9a3;
  --bs-primary-text-emphasis: #1d4f55; --bs-primary-bg-subtle: #e4f1f2; --bs-primary-border-subtle: #b9d9dd;
  --bs-dark-text-emphasis: #241a1f; --bs-dark-bg-subtle: #e9e1e6; --bs-dark-border-subtle: #cfc4cc;
}


/* ==========================================================================
   1. FUNDO
   ========================================================================== */
body.auth-body {
  position: relative;
  isolation: isolate;
  font-family: var(--font-sans);
  color: var(--rb-text);
  min-height: 100svh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1000px 560px at 10% -8%, rgba(201, 169, 97, .22), transparent 62%),
    radial-gradient(880px 520px at 90% 6%, rgba(176, 47, 99, .55), transparent 60%),
    radial-gradient(720px 460px at 50% 108%, rgba(201, 85, 138, .2), transparent 62%),
    linear-gradient(160deg, #2a0a18 0%, #3f0f24 38%, #5c1634 72%, #7a1d44 100%);
  background-attachment: fixed;
}
body.auth-body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}


/* ==========================================================================
   2. NAVBAR
   ========================================================================== */
.auth-navbar {
  background: rgba(63, 15, 36, .84);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  min-height: var(--auth-navbar-h);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.auth-navbar-brand {
  display: inline-flex;
  align-items: center;
  color: #fff !important;
  text-decoration: none;
}
.auth-navbar-brand img {
  height: 40px;
  width: auto;
  max-width: 62vw;
  object-fit: contain;
  transition: transform .3s var(--rb-ease);
}
.auth-navbar-brand:hover img { transform: scale(1.03); }

.auth-nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .78) !important;
  padding: 6px 12px !important;
  border-radius: 9px;
  transition: color .2s, background-color .2s;
}
.auth-nav-link:hover { color: #fff !important; background: rgba(255, 255, 255, .09); }

.auth-navbar .navbar-toggler {
  border: 1px solid rgba(255, 255, 255, .2) !important;
  border-radius: 11px;
  padding: .34rem .54rem;
}
.auth-navbar .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(201, 169, 97, .4); }

.auth-navbar .btn-ouro {
  background-image: linear-gradient(135deg, #e6d4a3 0%, var(--rb-ouro-500) 60%, var(--rb-ouro-700) 100%);
  border: none;
  border-radius: 11px;
  color: var(--rb-vinho-950);
  font-weight: 700;
  box-shadow: 0 10px 22px -12px rgba(201, 169, 97, .95);
  transition: transform .2s var(--rb-ease), box-shadow .2s var(--rb-ease);
}
.auth-navbar .btn-ouro:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(201, 169, 97, 1); color: var(--rb-vinho-950); }


/* ==========================================================================
   3. CARTÃO CENTRAL
   ========================================================================== */
.auth-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.auth-container { width: 100%; max-width: 620px; }

.auth-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 26px;
  padding: 44px 40px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .65), 0 2px 0 rgba(255, 255, 255, .25) inset;
}
/* Filete champanhe no topo do cartão */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, var(--rb-vinho-500), var(--rb-ouro-500), transparent);
}

.auth-brand { text-align: center; margin-bottom: 30px; }
.auth-brand-logo {
  display: block;
  width: min(300px, 82%);
  height: auto;
  margin: 0 auto;
}

.auth-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--rb-ink-900);
  margin-bottom: 4px;
}
.auth-sub { color: var(--rb-muted); font-size: .93rem; margin-bottom: 26px; }


/* ==========================================================================
   4. FORMULÁRIO
   ========================================================================== */
.auth-card .form-label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #4a4049;
  margin-bottom: 7px;
}
.auth-card .form-control,
.auth-card .form-select,
.auth-card .input-group-text {
  border-radius: 12px;
  border-color: #e0d7dd;
  font-size: .95rem;
  padding-top: .62rem;
  padding-bottom: .62rem;
}
.auth-card .input-group-text {
  background: #faf6f8;
  color: var(--rb-muted);
  transition: color .2s, background-color .2s, border-color .2s;
}
.auth-card .form-control:focus,
.auth-card .form-select:focus {
  border-color: var(--rb-vinho-400);
  box-shadow: 0 0 0 4px rgba(149, 37, 82, .12);
}
.auth-card .input-group:focus-within .input-group-text {
  color: var(--rb-vinho-600);
  border-color: var(--rb-vinho-400);
  background: var(--rb-vinho-050);
}
.auth-card .form-control::placeholder { color: #b3a9b1; }
.auth-card .form-control:disabled,
.auth-card .form-control[readonly] { background: #f6f2f4; }
.auth-card .form-check-input:checked { background-color: var(--rb-vinho-600); border-color: var(--rb-vinho-600); }
.auth-card .form-check-input:focus { border-color: var(--rb-vinho-400); box-shadow: 0 0 0 4px rgba(149, 37, 82, .12); }

.auth-card .btn { border-radius: 12px; font-weight: 600; transition: transform .2s var(--rb-ease), box-shadow .2s var(--rb-ease); }
.auth-card .btn-danger {
  background-image: linear-gradient(135deg, var(--rb-vinho-600), var(--rb-vinho-800));
  border: none;
  box-shadow: 0 12px 28px -12px rgba(149, 37, 82, .95);
}
.auth-card .btn-danger:hover:not(:disabled) {
  background-image: linear-gradient(135deg, var(--rb-vinho-500), var(--rb-vinho-700));
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -14px rgba(149, 37, 82, 1);
}
.auth-card .btn-outline-secondary { border-color: #e0d7dd; color: var(--rb-muted); }
.auth-card .btn-outline-secondary:hover { background: #faf6f8; border-color: #d4cad1; color: var(--rb-ink-900); }

.auth-card a { color: var(--rb-vinho-700); }
.auth-card a.text-muted { color: var(--rb-muted) !important; text-decoration: none; }
.auth-card a.text-muted:hover { color: var(--rb-vinho-700) !important; }
.auth-card .text-danger { color: var(--rb-vinho-700) !important; }

.auth-card .alert { border-radius: 14px; border: none; font-size: .92rem; }
.auth-card hr { border-color: var(--rb-line); opacity: 1; }
.auth-rate-limit-hint { color: var(--rb-muted); }

/* Selo do plano escolhido no cadastro */
.auth-plano {
  display: flex; align-items: center; gap: .85rem;
  padding: .8rem 1rem; margin-bottom: 1.5rem;
  border-radius: 14px;
  background: var(--rb-vinho-050);
  border: 1px solid var(--rb-vinho-200);
}
.auth-plano .ico {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 1.2rem;
  background: var(--rb-vinho-100); color: var(--rb-vinho-700);
}
.auth-plano strong { display: block; color: var(--rb-ink-900); font-size: .95rem; }
.auth-plano small { color: var(--rb-muted); }

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid rgba(149, 37, 82, .45);
  outline-offset: 3px;
}


/* ==========================================================================
   5. RODAPÉ
   ========================================================================== */
.auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 24px;
  background: rgba(0, 0, 0, .3);
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: .76rem;
  color: rgba(255, 255, 255, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.auth-footer strong { color: rgba(255, 255, 255, .85); }
.auth-footer a {
  color: var(--rb-ouro-300);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}
.auth-footer a:hover { color: #fff; }
.auth-footer a i { font-size: .8rem; }


/* ==========================================================================
   6. BOTÃO FLUTUANTE DO WHATSAPP
   ========================================================================== */
.auth-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(140deg, #34e07a, #1faa50);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px -10px rgba(37, 211, 102, .85);
  transition: transform .22s var(--rb-ease), box-shadow .22s var(--rb-ease);
  text-decoration: none;
}
.auth-whatsapp::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .55);
  animation: rb-auth-pulse 2.6s ease-out infinite;
}
@keyframes rb-auth-pulse {
  0%   { transform: scale(1);    opacity: .7; }
  70%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}
.auth-whatsapp:hover { transform: scale(1.08); box-shadow: 0 16px 34px -10px rgba(37, 211, 102, .95); }
.auth-whatsapp svg { display: block; position: relative; z-index: 1; }


/* ==========================================================================
   6b. CARTÃO DIVIDIDO (login)
   --------------------------------------------------------------------------
   A view de login define a seção "Lateral" e o layout monta o cartão em duas
   colunas: painel vinho com a marca, o que o sistema faz e os selos de
   confiança; à direita, o formulário. Abaixo de 992px o painel some e o
   cartão volta a ser o simples, com a logo em cima.
   ========================================================================== */
.auth-container-ampla { max-width: 1040px; }

.auth-card.auth-card-dividido {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
}
.auth-card-dividido::before { display: none; }

.auth-lateral {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 44px 42px 36px;
  color: #fff;
  isolation: isolate;
  background:
    radial-gradient(640px 360px at 0% 0%, rgba(201, 169, 97, .22), transparent 60%),
    radial-gradient(560px 420px at 100% 100%, rgba(176, 47, 99, .55), transparent 62%),
    linear-gradient(160deg, var(--rb-vinho-950) 0%, var(--rb-vinho-900) 42%, var(--rb-vinho-800) 100%);
}
/* O símbolo cabide-coração, grande e discreto, como marca d'água no canto. */
.auth-lateral::after {
  content: '';
  position: absolute;
  right: -46px; bottom: -40px;
  width: 260px; height: 260px;
  z-index: -1;
  opacity: .08;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23ffffff' d='M32 23.2C27.2 19.9 22.6 16.3 22.6 11.9c0-3.5 2.6-6.1 5.9-6.1 1.4 0 2.6.6 3.5 1.6.9-1 2.1-1.6 3.5-1.6 3.3 0 5.9 2.6 5.9 6.1 0 4.4-4.6 8-9.4 11.3Z'/%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='4.6' stroke-linecap='round' stroke-linejoin='round' d='M32 23.6v6.2c-2.1 0-4.6 1.3-7.1 3L9.6 43.4c-2.4 1.6-1.3 5.2 1.6 5.2h41.6c2.9 0 4-3.6 1.6-5.2L39.1 32.8c-2.5-1.7-5-3-7.1-3'/%3E%3C/svg%3E") no-repeat center / contain;
  transform: rotate(-12deg);
}
.auth-lateral-marca { display: inline-flex; width: fit-content; }
.auth-lateral-marca img { height: 40px; width: auto; }

.auth-lateral-titulo {
  font-family: var(--font-serif);
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 8px 0 0;
  text-wrap: balance;
}
.auth-lateral-titulo em { font-style: italic; font-weight: 600; color: var(--rb-ouro-300); }
.auth-lateral-texto { margin: 0; color: rgba(255, 255, 255, .78); font-size: .95rem; line-height: 1.5; }

.auth-recursos {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
}
.auth-recursos li { display: flex; align-items: center; gap: 13px; }
.auth-recursos li i {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  color: var(--rb-ouro-300);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.auth-recursos li span { display: grid; gap: 1px; min-width: 0; }
.auth-recursos strong { font-size: .9rem; font-weight: 600; line-height: 1.25; }
.auth-recursos small { font-size: .77rem; color: rgba(255, 255, 255, .64); line-height: 1.35; }

.auth-selos {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.auth-selos span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .2);
  border: 1px solid rgba(255, 255, 255, .1);
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .82);
}
.auth-selos i { color: var(--rb-ouro-300); }

.auth-principal { position: relative; padding: 44px 42px 36px; }
.auth-card-dividido .auth-principal::before {
  content: '';
  position: absolute;
  top: 0; left: 14%; right: 14%;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, var(--rb-vinho-500), var(--rb-ouro-500), transparent);
}
.auth-card-dividido .auth-brand { display: none; }

/* Cabeçalho do formulário com ícone */
.auth-cabecalho { margin-bottom: 24px; }
.auth-icone-topo {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 16px;
  border-radius: 17px;
  font-size: 1.45rem;
  color: var(--rb-vinho-600);
  background: linear-gradient(145deg, var(--rb-vinho-050), var(--rb-vinho-100));
  box-shadow: inset 0 0 0 1px rgba(149, 37, 82, .08), 0 10px 20px -14px rgba(149, 37, 82, .7);
}
.auth-cabecalho .auth-sub { margin-bottom: 0; }

.auth-linha-ajuda { display: flex; justify-content: flex-end; margin: 2px 0 18px; }
.auth-link-discreto {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--rb-muted) !important;
  text-decoration: none;
  transition: color .2s;
}
.auth-link-discreto:hover { color: var(--rb-vinho-700) !important; }
.auth-link-discreto i { font-size: .9rem; }

.auth-card .auth-btn-entrar,
.auth-card .auth-btn-cadastro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: .72rem 1rem;
  font-size: .98rem;
}
.auth-card .auth-btn-cadastro {
  border-color: rgba(149, 37, 82, .35);
  color: var(--rb-vinho-700);
  background: #fff;
}
.auth-card .auth-btn-cadastro:hover {
  background: var(--rb-vinho-050);
  border-color: var(--rb-vinho-500);
  color: var(--rb-vinho-700);
  transform: translateY(-2px);
}

.auth-divisor {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
  color: var(--rb-muted);
  font-size: .76rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-weight: 600;
}
.auth-divisor::before,
.auth-divisor::after { content: ''; flex: 1; height: 1px; background: var(--rb-line); }

.auth-entradas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}
.auth-entradas span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 11px 6px 9px;
  border-radius: 13px;
  background: var(--rb-vinho-050);
  border: 1px solid var(--rb-vinho-100);
  font-size: .72rem;
  font-weight: 600;
  color: #4a4049;
}
.auth-entradas i { font-size: 1.25rem; color: var(--rb-vinho-600); }
.auth-nota { margin: 10px 0 0; text-align: center; font-size: .77rem; color: var(--rb-muted); }

@media (max-width: 1199.98px) {
  .auth-lateral, .auth-principal { padding: 38px 32px 30px; }
  .auth-lateral-titulo { font-size: 1.9rem; }
}
@media (max-width: 991.98px) {
  .auth-container-ampla { max-width: 620px; }
  .auth-card.auth-card-dividido { grid-template-columns: 1fr; }
  .auth-lateral { display: none; }
  .auth-card-dividido .auth-brand { display: block; }
  .auth-card-dividido .auth-principal::before { left: 12%; right: 12%; }
  .auth-principal { padding: 40px 36px 32px; }
}
@media (max-width: 575.98px) {
  .auth-principal { padding: 28px 20px 24px; }
  .auth-cabecalho { margin-bottom: 18px; }
  .auth-icone-topo { width: 48px; height: 48px; font-size: 1.3rem; margin-bottom: 12px; }
}


/* ==========================================================================
   7. MOVIMENTO REDUZIDO
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .auth-whatsapp::after { animation: none !important; }
  .auth-card .btn:hover,
  .auth-navbar .btn-ouro:hover,
  .auth-whatsapp:hover,
  .auth-navbar-brand:hover img { transform: none !important; }
}
