/* ============================================================
   NBN LIVING · Login (Escritório Virtual)
   Layout baseado em nbn-login-bg.html
   ============================================================ */
:root {
  --blue: #0067b9;
  --blue-2: #0a86e0;
  --blue-deep: #004e8f;
  --sky-0: #eaf3fc;
  --sky-1: #d3e6f8;
  --sky-2: #bcd9f3;
  --green: #5bb531;
  --card: rgba(255, 255, 255, .86);
  --ink: #274156;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body.login-body {
  margin: 0 !important;
  padding: 0 !important;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--sky-0);
  color: var(--ink);
  overflow-y: auto;
  min-height: 100vh;
}

.slides {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  max-width: 100vw;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 1.6s ease;
}

.slide.on {
  opacity: 1;
}

/* ===== SLIDE 1 — céu claro + folhas subindo ===== */
.s-sky {
  background:
    radial-gradient(120% 90% at 50% 0%, #ffffff 0%, transparent 45%),
    linear-gradient(165deg, var(--sky-0) 0%, var(--sky-1) 55%, var(--sky-2) 100%);
}

.s-sky .sun {
  position: absolute;
  left: 50%;
  top: 14%;
  width: 60vmin;
  height: 60vmin;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(191, 217, 243, 0) 62%);
  animation: breathe 8s ease-in-out infinite alternate;
}

.s-sky .curve {
  position: absolute;
  left: -6%;
  bottom: -8%;
  width: 60%;
  height: 46%;
  background: radial-gradient(120% 90% at 0% 100%, rgba(91, 181, 49, .22), transparent 62%);
}

.s-sky .curve2 {
  position: absolute;
  right: -8%;
  top: -10%;
  width: 50%;
  height: 44%;
  background: radial-gradient(100% 90% at 100% 0%, rgba(10, 134, 224, .18), transparent 60%);
}

.s-sky canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ===== SLIDE 2 — folhas claras sobre o azul da marca ===== */
.s-net {
  background:
    radial-gradient(120% 100% at 50% -10%, #1f8fe0 0%, transparent 55%),
    linear-gradient(165deg, #0a6fbf 0%, var(--blue) 55%, var(--blue-deep) 100%);
}

.s-net canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.s-net .glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(45% 45% at 50% 38%, rgba(255, 255, 255, .16), transparent 60%);
}

@keyframes breathe {
  0% {
    opacity: .7;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

/* ---------- card ---------- */
.login-main-wrapper {
  position: relative;
  z-index: 3;
  min-height: 100vh;
}

.nb-stage {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 24px;
}

.nb-logo {
  width: min(150px, 36vw);
  filter: drop-shadow(0 8px 20px rgba(0, 78, 143, .35));
  transition: opacity .3s ease;
  display: block;
}

.nb-card {
  width: min(430px, 92vw);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 16px;
  padding: 30px 26px 26px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 26px 70px -22px rgba(6, 40, 75, .5);
  margin: 0 auto;
}

.nb-field {
  display: flex !important;
  width: 100%;
  margin-bottom: 16px;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(6, 40, 75, .14);
  background: #fff;
  border: none;
}

.nb-field .nb-ic,
.nb-field .input-group-btn > .nb-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  min-width: 54px;
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  border: none;
  border-radius: 0;
  margin: 0;
  padding: 0;
}

.nb-field input.form-control,
.nb-field input {
  flex: 1;
  border: 0 !important;
  outline: 0 !important;
  padding: 0 14px;
  height: 50px;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  box-shadow: none !important;
  border-radius: 0;
}

.nb-field input.form-control:focus {
  border: 0 !important;
  box-shadow: none !important;
}

.nb-eye {
  width: 54px;
  min-width: 54px;
  border: 0;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .15s;
  padding: 0;
  border-radius: 0;
}

.nb-eye:hover, .nb-eye:focus {
  background: var(--blue-deep);
  color: #fff;
  outline: none;
}

.nb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  font-size: 14px;
  margin: 8px 2px 18px;
}

.nb-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
  margin: 0;
  color: var(--ink);
}

.nb-row label input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}

.nb-row label .icheckbox_square-blue,
.nb-row label div[class*="icheckbox"] {
  margin-right: 6px;
}

.nb-row a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  transition: .15s;
}

.nb-row a:hover {
  color: var(--blue-deep);
  text-decoration: underline;
}

.nb-langs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}

.nb-langs a,
.nb-langs span {
  cursor: pointer;
  display: inline-flex;
  line-height: 0;
  filter: grayscale(.15);
  opacity: .9;
  transition: .15s;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(6, 40, 75, .25);
}

.nb-langs a img,
.nb-langs span img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.nb-langs a:hover,
.nb-langs span:hover {
  transform: scale(1.15);
  filter: none;
  opacity: 1;
}

.nb-btn {
  width: 100%;
  height: 52px;
  border: 0 !important;
  border-radius: 9px;
  cursor: pointer;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(180deg, var(--blue-2), var(--blue)) !important;
  box-shadow: 0 12px 26px -10px rgba(0, 103, 185, .7);
  transition: .12s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.nb-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  color: #fff;
}

.nb-btn:active {
  transform: translateY(0);
}

.nb-dots {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 9px;
}

.nb-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(0, 103, 185, .35);
  cursor: pointer;
  transition: .2s;
  display: inline-block;
}

.nb-dots i.on {
  background: var(--blue);
  width: 22px;
  border-radius: 5px;
}

label.error {
  font-weight: normal;
  color: #e0524a;
  font-size: 12px;
  margin-top: 4px;
  display: block;
  text-align: left;
}

div.g-recaptcha > div {
  margin: 0 auto !important;
}

@media screen and (max-width: 575px) {
  #rc-imageselect, .g-recaptcha {
    transform: scale(0.77);
    -webkit-transform: scale(0.77);
    transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
  }
}

/* Modal Esqueci Minha Senha */
form.form-forgot-password div.device {
  padding: 10px 0 15px;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  cursor: pointer;
}

form.form-forgot-password div.device:hover {
  background: #ddd;
}

form.form-forgot-password div.device:hover i {
  color: #000;
}

form.form-forgot-password div.device span {
  font-weight: bold;
  top: 10px;
  position: relative;
}

form.form-forgot-password div.device.ativo {
  background: #3c3c3c;
}

form.form-forgot-password div.device.ativo i,
form.form-forgot-password div.device.ativo span {
  color: #fff;
}

@media(prefers-reduced-motion: reduce) {
  .s-sky .sun {
    animation: none;
  }
}