/* RocxPay — Login (layout estilo Cakto SSO) */

:root {
  --lg-blue: #2563eb;
  --lg-blue-hover: #1d4ed8;
  --lg-ink: #111827;
  --lg-muted: #4b5563;
  --lg-faint: #6b7280;
  --lg-line: #d1d5db;
  --lg-banner: #161c24;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff;
  color: var(--lg-ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
}

a { color: inherit; }

.lg-root {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

.lg-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  min-width: 0;
}

.lg-box {
  width: 100%;
  max-width: 520px;
}

.lg-logo {
  display: inline-block;
  margin: 0 0 2.5rem;
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -.045em;
  color: var(--lg-ink);
  text-decoration: none;
}

.lg-box h1 {
  margin: 0 0 .5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

.lg-lead {
  margin: 0 0 2rem;
  font-size: .875rem;
  color: #4b5563;
  line-height: 1.5;
}

.lg-alert {
  margin: 0 0 1.25rem;
  padding: .9rem 1rem;
  border-radius: 6px;
  font-size: .875rem;
  line-height: 1.45;
}
.lg-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.lg-alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.lg-alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.lg-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.lg-field {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.lg-field label {
  font-size: .875rem;
  font-weight: 500;
  color: #374151;
}

.lg-field input,
.lg-pass input {
  width: 100%;
  height: 3rem;
  border: 1px solid var(--lg-line);
  border-radius: 6px;
  padding: 0 1rem;
  font-size: 16px;
  color: #111827;
  background: #fff;
  outline: none;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}

.lg-field input::placeholder,
.lg-pass input::placeholder { color: #9ca3af; }

.lg-field input:focus,
.lg-pass input:focus {
  border-color: var(--lg-blue);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .2);
}

.lg-pass { position: relative; }
.lg-pass input { padding-right: 3rem; }

.lg-eye {
  position: absolute;
  right: .65rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #9ca3af;
  padding: .25rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lg-eye:hover { color: #4b5563; }
.lg-eye svg { display: block; }
.lg-eye .lg-eye-off { display: none; }
.lg-eye.is-on .lg-eye-on { display: none; }
.lg-eye.is-on .lg-eye-off { display: block; }

.lg-remember {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: .75rem;
}

.lg-remember input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin: .15rem 0 0;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  background: #fff;
  position: relative;
  cursor: pointer;
  flex: none;
  transition: border-color .2s, background .2s;
}

.lg-remember input[type="checkbox"]:hover { border-color: var(--lg-blue); }

.lg-remember input[type="checkbox"]:checked {
  background: var(--lg-blue);
  border-color: var(--lg-blue);
}

.lg-remember input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 12px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: translate(-50%, -55%) rotate(45deg);
}

.lg-remember input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--lg-blue);
  outline-offset: 2px;
}

.lg-remember label {
  font-size: .875rem;
  color: #374151;
  cursor: pointer;
}

.lg-remember p {
  margin: .15rem 0 0;
  font-size: .75rem;
  color: #6b7280;
  line-height: 1.45;
}

.lg-submit {
  width: 100%;
  height: 3rem;
  border: 0;
  border-radius: 6px;
  background: var(--lg-blue);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s;
}

.lg-submit:hover { background: var(--lg-blue-hover); }

.lg-foot {
  margin: 1.15rem 0 0;
  text-align: center;
  font-size: .875rem;
  color: #4b5563;
}

.lg-foot a {
  color: var(--lg-blue);
  font-weight: 500;
  text-decoration: none;
}

.lg-foot a:hover { color: var(--lg-blue-hover); }

.lg-back {
  margin: .85rem 0 0;
  text-align: center;
  font-size: .8rem;
}

.lg-back a {
  color: #9ca3af;
  text-decoration: none;
}

.lg-back a:hover { color: #4b5563; }

.lg-banner {
  display: none;
  position: relative;
  overflow: hidden;
  background: var(--lg-banner);
  min-width: 0;
  color: #e8eef8;
  padding: 3rem;
}

.lg-banner-glow {
  position: absolute;
  width: 720px;
  height: 720px;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -40%);
  border-radius: 50%;
  background: radial-gradient(circle, #3b8cff33 0%, transparent 62%);
  pointer-events: none;
}

.lg-banner-copy {
  position: relative;
  z-index: 1;
  max-width: 28rem;
}

.lg-banner-kicker {
  margin: 0 0 .75rem;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #7eb6ff;
}

.lg-banner-title {
  margin: 0 0 .85rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.15;
  color: #f8fafc;
}

.lg-banner-text {
  margin: 0;
  font-size: .95rem;
  line-height: 1.55;
  color: #9aa8bb;
  max-width: 22rem;
}

.lg-mini {
  position: relative;
  z-index: 1;
  margin-top: 2.5rem;
  max-width: 22rem;
  border-radius: 14px;
  overflow: hidden;
  background: #0e141c;
  border: 1px solid #2a3544;
  box-shadow: 0 24px 60px #0008;
}

.lg-mini-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: .7rem .85rem;
  background: #121a24;
  border-bottom: 1px solid #243040;
}

.lg-mini-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
  font-style: normal;
}

.lg-mini-bar i:nth-child(1) { background: #f87171; }
.lg-mini-bar i:nth-child(2) { background: #fbbf24; }
.lg-mini-bar i:nth-child(3) { background: #34d399; }

.lg-mini-bar span {
  margin-left: .35rem;
  font-size: .7rem;
  color: #7b8aa0;
}

.lg-mini-body {
  padding: 1rem .95rem 1.05rem;
  background: #f6f7f9;
  color: #111;
}

.lg-mini-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .85rem;
  font-size: .9rem;
}

.lg-mini-pay {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: .85rem;
}

.lg-mini-pay span {
  text-align: center;
  font-size: .75rem;
  font-weight: 600;
  border: 1px solid #e6e8ec;
  border-radius: 8px;
  padding: .45rem;
  background: #fff;
}

.lg-mini-pay span:first-child {
  border-color: #12b8a6;
  background: #ecfdf8;
  color: #0f766e;
}

.lg-mini-cta {
  background: #111;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: .65rem;
  font-size: .85rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .lg-root {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
  }
  .lg-col {
    padding: 3rem 4rem;
  }
  .lg-banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
  }
  .lg-field input,
  .lg-pass input { font-size: .875rem; }
}

@media (max-width: 640px) {
  .lg-box { padding-inline: 4px; }
  .lg-remember input[type="checkbox"] {
    width: 22px;
    height: 22px;
  }
}
