/* OneToolBox — Login / Cadastro */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body.otb-auth {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", system-ui, sans-serif;
  color: #1c1216;
  background: #12080c;
}

.otb-auth-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: 100vh;
}

.otb-auth-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.5rem);
  background:
    linear-gradient(155deg, #821E3C 0%, #5C1429 42%, #2a0c16 100%);
  color: #fff;
  display: flex;
  align-items: stretch;
}

.otb-auth-hero-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 180, 200, 0.22), transparent 65%);
  animation: otbGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.otb-auth-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 90%);
  pointer-events: none;
}

@keyframes otbGlow {
  from { transform: translate(0, 0) scale(1); opacity: 0.7; }
  to { transform: translate(-8%, 10%) scale(1.12); opacity: 1; }
}

.otb-auth-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 460px;
  animation: otbRise 0.7s ease both;
}

@keyframes otbRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.otb-auth-brand img {
  height: 42px;
  width: auto;
  display: block;
}

.otb-auth-kicker {
  margin: 2.2rem 0 0.7rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 230, 238, 0.72);
}

.otb-auth-headline {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.otb-auth-headline em {
  font-style: italic;
  color: #ffd0dc;
}

.otb-auth-lead {
  margin: 1.1rem 0 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(255, 240, 244, 0.82);
  max-width: 36ch;
}

.otb-auth-points {
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.otb-auth-points li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.94rem;
  color: rgba(255, 240, 244, 0.9);
}

.otb-auth-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffb3c6;
  box-shadow: 0 0 0 4px rgba(255, 179, 198, 0.2);
  flex-shrink: 0;
}

.otb-auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(700px 400px at 90% 10%, rgba(130, 30, 60, 0.08), transparent 55%),
    #f7f2f4;
}

.otb-auth-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid #eadfe4;
  border-radius: 20px;
  padding: 2rem 1.85rem 1.7rem;
  box-shadow: 0 24px 60px rgba(92, 20, 41, 0.1);
  animation: otbRise 0.75s ease 0.08s both;
}

.otb-auth-mobile-brand {
  display: none;
  margin: 0 0 1rem;
}

.otb-auth-mobile-brand img {
  height: 36px;
  width: auto;
}

.otb-auth-card h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.75rem;
  color: #5C1429;
  letter-spacing: -0.02em;
}

.otb-auth-muted {
  margin: 0.4rem 0 1.4rem;
  color: #6b5560;
  font-size: 0.95rem;
}

.otb-auth-form {
  display: grid;
  gap: 0.95rem;
}

.otb-auth-form label {
  display: grid;
  gap: 0.35rem;
}

.otb-auth-form label span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #4a3540;
}

.otb-auth-form input {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #e4d5db;
  background: #faf7f8;
  font: inherit;
  font-size: 0.98rem;
  color: #1c1216;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.otb-auth-form input:focus {
  outline: none;
  border-color: #821E3C;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(130, 30, 60, 0.14);
}

.otb-auth-btn {
  margin-top: 0.25rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #821E3C 0%, #5C1429 100%);
  color: #fff;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  box-shadow: 0 10px 24px rgba(130, 30, 60, 0.28);
}

.otb-auth-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.otb-auth-btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.otb-auth-btn--ghost {
  margin-top: 0.55rem;
  background: #fff;
  color: #821E3C;
  border: 1px solid rgba(130, 30, 60, 0.3);
  box-shadow: none;
}

.otb-auth-btn--ghost:hover {
  filter: none;
  background: rgba(130, 30, 60, 0.06);
}

.otb-auth-forgot {
  margin: -0.25rem 0 0;
  text-align: right;
  font-size: 0.86rem;
}

.otb-auth-forgot a {
  color: #821E3C;
  font-weight: 600;
  text-decoration: none;
}

.otb-auth-forgot a:hover {
  text-decoration: underline;
}

.otb-auth-stage--single {
  grid-template-columns: 1fr;
}

.otb-auth-stage--single .otb-auth-panel {
  min-height: 100vh;
}

.otb-pwd-rules {
  list-style: none;
  margin: -0.15rem 0 0.15rem;
  padding: 0.7rem 0.85rem;
  display: grid;
  gap: 0.35rem;
  border-radius: 12px;
  border: 1px solid #eadfe4;
  background: #faf6f7;
}

.otb-pwd-rules li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.84rem;
  font-weight: 550;
  color: #6b5560;
  line-height: 1.3;
  transition: color 0.15s ease;
}

.otb-pwd-rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  border: 1.5px solid #c9b4bc;
  background: #fff;
  box-sizing: border-box;
}

.otb-pwd-rules li.is-ok {
  color: #146c43;
}

.otb-pwd-rules li.is-ok::before {
  border-color: #2f9e5f;
  background: #2f9e5f;
  box-shadow: inset 0 0 0 2px #fff;
}

.otb-pwd-rules li.is-bad {
  color: #9f1239;
}

.otb-pwd-rules li.is-bad::before {
  border-color: #e11d48;
  background: #ffe8ee;
}

.otb-auth-msg {
  margin: 0;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  font-size: 0.88rem;
}

.otb-auth-msg.is-error {
  background: #ffe8ee;
  color: #9f1239;
  border: 1px solid #ffc4d2;
}

.otb-auth-msg.is-ok {
  background: #e8f8ef;
  color: #146c43;
  border: 1px solid #b7e8cc;
}

.otb-auth-foot {
  margin: 1.35rem 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: #6b5560;
}

.otb-auth-foot a {
  color: #821E3C;
  font-weight: 600;
  text-decoration: none;
}

.otb-auth-foot a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .otb-auth-stage {
    grid-template-columns: 1fr;
  }

  .otb-auth-hero {
    min-height: 240px;
    padding: 1.5rem 1.35rem 1.8rem;
  }

  .otb-auth-headline {
    font-size: 1.85rem;
  }

  .otb-auth-lead,
  .otb-auth-points {
    display: none;
  }

  .otb-auth-mobile-brand {
    display: block;
  }

  .otb-auth-panel {
    padding: 1.25rem;
    align-items: flex-start;
  }
}
