/* ═══════════════════════════════════════════════
   GOING NORTH — login.css
   Estilos exclusivos da página de autenticação.
   ═══════════════════════════════════════════════ */

body {
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

/* ── Background ── */
.bg { position: fixed; inset: 0; z-index: -1; }

.bg-img {
  position: absolute;
  inset: 0;
  background: url('../images/Component 1.png') center / cover no-repeat;
  filter: blur(4px);
  transform: scale(1.05);
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,51,51,.92) 0%, rgba(0,51,51,.88) 60%, rgba(0,45,45,.85) 100%);
}

.bg-glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,171,94,.18) 0%, transparent 70%);
  pointer-events: none;
}

.bg-glow2 {
  position: absolute;
  bottom: -15%; left: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(13,148,136,.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Layout ── */
.layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ── Coluna esquerda ── */
.left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 48px;
  position: relative;
  overflow: hidden;
}

.left-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.15rem;
}

.left-logo-icon {
  width: 40px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.left-content { max-width: 480px; }

.left-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--w10);
  border: 1px solid var(--w20);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 28px;
  letter-spacing: .03em;
}

.left-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.8); }
}

.left h1 {
  font-family: var(--font-d);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
}

.left h1 .hl { color: var(--green); }

.left p {
  font-size: .95rem;
  color: var(--w80);
  line-height: 1.7;
  margin-bottom: 40px;
}

.features { display: flex; flex-direction: column; gap: 14px; }

.feat {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--w80);
  font-size: .88rem;
}

.feat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--w06);
  border: 1px solid var(--w10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.left-footer {
  color: var(--w50);
  font-size: .78rem;
}

/* ── Coluna direita (formulário) ── */
.right {
  width: 480px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: rgba(255, 255, 255, .03);
  border-left: 1px solid var(--w10);
  backdrop-filter: blur(20px);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  animation: fadeUp .4s ease;
}

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

.auth-title {
  font-family: var(--font-d);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.auth-sub {
  font-size: .875rem;
  color: var(--w50);
  margin-bottom: 32px;
}

.auth-sub a {
  color: var(--green);
  font-weight: 600;
  cursor: pointer;
}

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

/* ── Tabs ── */
.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--w06);
  border: 1px solid var(--w10);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  padding: 8px;
  border-radius: 7px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--w50);
  transition: all .2s;
  font-family: var(--font-b);
}

.auth-tab.active {
  background: var(--green);
  color: #fff;
}

/* ── Formulário ── */
.form-group {
  margin-bottom: 16px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--w80);
  margin-bottom: 7px;
  letter-spacing: .02em;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--w20);
  border-radius: 10px;
  font-size: .88rem;
  font-family: var(--font-b);
  color: #fff;
  background: var(--w06);
  outline: none;
  transition: all .2s;
}

.form-control::placeholder { color: var(--w50); }

.form-control:focus {
  border-color: var(--green);
  background: rgba(26, 171, 94, .06);
  box-shadow: 0 0 0 3px var(--green-dim);
}

.form-control:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0px 1000px rgba(10, 30, 20, .9) inset;
}

.pw-wrap { position: relative; }

.pw-toggle {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--w50);
  padding: 4px;
  transition: color .2s;
}

.pw-toggle:hover { color: var(--w80); }

.form-error {
  font-size: .77rem;
  color: #f87171;
  margin-top: 6px;
  display: none;
}

.form-error.show { display: block; }

/* ── Alertas ── */
.alert {
  padding: 11px 14px;
  border-radius: 9px;
  font-size: .82rem;
  font-weight: 500;
  margin-bottom: 16px;
  display: none;
  align-items: center;
  gap: 8px;
}

.alert.show { display: flex; }

.alert-error {
  background: rgba(239, 68, 68, .12);
  border: 1px solid rgba(239, 68, 68, .25);
  color: #fca5a5;
}

.alert-success {
  background: rgba(26, 171, 94, .12);
  border: 1px solid rgba(26, 171, 94, .25);
  color: #86efac;
}

/* ── Botão submit ── */
.btn-submit {
  width: 100%;
  padding: 13px;
  border-radius: 11px;
  background: var(--green);
  border: none;
  color: #fff;
  font-size: .93rem;
  font-weight: 700;
  font-family: var(--font-d);
  cursor: pointer;
  transition: all .25s;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: .01em;
}

.btn-submit:hover {
  background: var(--green-h);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--green-glow);
}

.btn-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* ── Spinner de loading ── */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}

@keyframes spin { to { transform: rotate(360deg); } }

.btn-submit.loading .spinner  { display: block; }
.btn-submit.loading .btn-text { display: none; }

/* ── Divisor ── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--w50);
  font-size: .78rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--w10);
}

/* ── Esqueci senha ── */
.forgot {
  text-align: right;
  margin-top: -8px;
  margin-bottom: 16px;
}

.forgot a {
  font-size: .78rem;
  color: var(--w50);
  cursor: pointer;
  transition: color .2s;
}

.forgot a:hover { color: var(--green); }

/* ── Força da senha ── */
.pw-strength { margin-top: 6px; display: none; }
.pw-strength.show { display: block; }

.strength-bar {
  display: flex;
  gap: 3px;
  margin-bottom: 4px;
}

.strength-seg {
  flex: 1;
  height: 3px;
  border-radius: 20px;
  background: var(--w10);
  transition: background .3s;
}

.strength-label { font-size: .72rem; color: var(--w50); }

/* ── Termos ── */
.terms {
  font-size: .76rem;
  color: var(--w50);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

.terms a { color: var(--green); }

/* ── Responsivo ── */
@media (max-width: 820px) {
  .left  { display: none; }
  .right { width: 100%; border-left: none; }
}
