/* ═══════════════════════════════════════
   Time Audit — Login Styles
   ═══════════════════════════════════════ */

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

:root {
  --deep-forest: #123C2A;
  --teal-green:  #166E58;
  --emerald:     #1B9D6E;
  --sage:        #A4BDAB;
  --cream:       #F5F0E6;
  --error:       #C0392B;
}

html, body { height: 100%; font-family: 'Lato', sans-serif; overflow: hidden; }

/* ── GRID 65/35 ──────────────────────── */
.page {
  display: grid;
  grid-template-columns: 65fr 35fr;
  height: 100vh;
}

/* ══════════════════════════════════════
   PAINEL ESQUERDO — verde
══════════════════════════════════════ */
.left {
  position: relative;
  background: var(--deep-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  overflow: hidden;
}

/* Anéis decorativos */
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(164,189,171,.13);
  pointer-events: none;
}
.r1 { width: 700px; height: 700px; top: -220px; left: -220px; }
.r2 { width: 480px; height: 480px; top: -110px; left: -110px; border-color: rgba(27,157,110,.10); }
.r3 { width: 580px; height: 580px; bottom: -220px; right: -230px; }
.r4 { width: 360px; height: 360px; bottom: -110px; right: -110px; border-color: rgba(27,157,110,.18); }

.vbar {
  position: absolute;
  right: 0; top: 8%; height: 84%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--emerald) 50%, transparent);
  opacity: .45;
}

/* ── Container interno: imagem | textos ── */
.left-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Coluna da imagem */
.left-mockup {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 280px;
}
.left-mockup img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  filter: drop-shadow(0 16px 48px rgba(0,0,0,.55));
  animation: floatMockup 5s ease-in-out infinite;
}
@keyframes floatMockup {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-10px); }
}

/* Coluna dos textos */
.left-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

/* Badge */
.left-badge {
  display: inline-block;
  background: rgba(27,157,110,.18);
  border: 1px solid rgba(27,157,110,.35);
  color: var(--emerald);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px;
  margin-bottom: 18px;
}

/* Headline */
.left h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 1.75rem;
  color: var(--cream); line-height: 1.25;
  letter-spacing: -.3px; margin-bottom: 12px;
}
.left h1 em { color: var(--emerald); font-style: normal; }

.left-desc {
  color: var(--sage); font-size: .85rem;
  line-height: 1.75; margin-bottom: 28px;
}

/* Features em coluna */
.features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.feature-item {
  display: flex; align-items: center; gap: 12px;
  animation: fadeUp .6s ease both;
}
.feature-item:nth-child(2) { animation-delay: .1s; }
.feature-item:nth-child(3) { animation-delay: .2s; }

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

.feature-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: rgba(27,157,110,.15);
  border: 1px solid rgba(27,157,110,.30);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--emerald);
}
.feature-icon svg { width: 17px; height: 17px; }

.feature-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600; font-size: .82rem;
  color: var(--cream); margin-bottom: 2px;
}
.feature-desc { font-size: .72rem; color: var(--sage); }

/* ══════════════════════════════════════
   PAINEL DIREITO — cream, form centrado
══════════════════════════════════════ */
.right {
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 28px;
  position: relative;
}

.right::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(18,60,42,.035) 1px, transparent 1px);
  background-size: 28px 28px;
}

.right-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 320px;
  display: flex; flex-direction: column; align-items: center;
}

/* Logo */
.logo-box { margin-bottom: 20px; text-align: center; }
.logo-box img { width: 130px; }

/* Cabeçalho */
.fhead { width: 100%; margin-bottom: 20px; }
.eyebrow {
  font-size: .65rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--emerald); margin-bottom: 5px;
}
.fhead h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 1.35rem;
  color: var(--deep-forest); line-height: 1.2;
}
.fhead p { margin-top: 4px; color: var(--teal-green); font-size: .8rem; }
.divider { width: 36px; height: 3px; background: var(--emerald); border-radius: 2px; margin-top: 10px; }

form { width: 100%; }

/* Campos */
.field { margin-bottom: 13px; }
.field label {
  display: block; font-size: .67rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal-green); margin-bottom: 4px;
}
.input-wrap { position: relative; }
.input-wrap .ico {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  color: var(--sage); pointer-events: none; transition: color .2s;
}
input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 11px 11px 11px 36px;
  border: 1.5px solid var(--sage);
  border-radius: 8px; background: #fff;
  font-family: 'Lato', sans-serif;
  font-size: .85rem; color: var(--deep-forest);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
input:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(27,157,110,.12);
}
.input-wrap:focus-within .ico { color: var(--teal-green); }

.eye-btn {
  position: absolute; right: 11px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--sage); transition: color .2s; display: flex;
}
.eye-btn:hover { color: var(--teal-green); }

/* Lembrar / esqueci */
.row-mid {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 18px;
}
.chk-label {
  display: flex; align-items: center; gap: 7px;
  font-size: .75rem; color: var(--teal-green);
  cursor: pointer; user-select: none;
}
.chk-label input { display: none; }
.chk-box {
  width: 15px; height: 15px;
  border: 1.5px solid var(--sage); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s; flex-shrink: 0;
}
.chk-label input:checked ~ .chk-box { background: var(--emerald); border-color: var(--emerald); }
.chk-label input:checked ~ .chk-box::after {
  content: ''; display: block;
  width: 4px; height: 7px;
  border: 2px solid #fff; border-top: none; border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}
.link-forgot {
  font-size: .75rem; color: var(--teal-green);
  text-decoration: none; transition: color .2s;
}
.link-forgot:hover { color: var(--emerald); }

/* Alerta */
.alert {
  display: none; align-items: center; gap: 8px;
  background: #fdf0ef; border: 1px solid #e8b4b0;
  border-left: 3px solid var(--error); border-radius: 6px;
  padding: 9px 12px; font-size: .78rem; color: var(--error);
  margin-bottom: 12px;
}
.alert.show { display: flex; animation: pop .25s ease; }
@keyframes pop {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; }
}

/* Botão */
.btn {
  width: 100%; padding: 13px;
  background: var(--deep-forest); color: var(--cream);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: .84rem; letter-spacing: .07em;
  border: none; border-radius: 8px; cursor: pointer;
  position: relative; overflow: hidden; transition: transform .15s;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--teal-green), var(--emerald));
  opacity: 0; transition: opacity .3s;
}
.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(.98); }
.btn span { position: relative; z-index: 1; }
.btn.loading .btn-txt { opacity: 0; }
.btn.loading .spin { display: block; }

.spin {
  display: none; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 18px; height: 18px; z-index: 2;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff; border-radius: 50%;
  animation: rot .7s linear infinite;
}
@keyframes rot { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Rodapé */
.ffoot { margin-top: 18px; width: 100%; }
.sep { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sep-line { flex: 1; height: 1px; background: rgba(164,189,171,.4); }
.sep-txt  { font-size: .6rem; color: var(--sage); letter-spacing: .05em; white-space: nowrap; }
.brand-row { display: flex; align-items: center; gap: 7px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); }
.brand-row span { font-size: .6rem; color: var(--sage); letter-spacing: .06em; }
.version-badge {
  margin-top: 8px; text-align: center;
  font-size: .58rem; color: rgba(164,189,171,.45);
  letter-spacing: .06em;
}

/* ── RESPONSIVO ─────────────────────── */
@media (max-width: 1100px) {
  .left-content { gap: 24px; }
  .left-mockup { width: 220px; }
  .left h1 { font-size: 1.5rem; }
}
@media (max-width: 860px) {
  .page { grid-template-columns: 1fr; }
  .left { display: none; }
  .right { padding: 32px 20px; height: 100vh; overflow-y: auto; }
}
