@import url('container.css');

/* ============================================================
   Login - reaproveita as variáveis visuais do container.css
   (azul #4f7df3, cinzas, radius 12/8, Inter, sombras suaves)
   ============================================================ */

html, body {
  min-height: 100%;
}

body {
  background: #f1f4f9;
}

.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

/* ---------- Painel de marca ---------- */
.login-brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 48px;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(255, 255, 255, .08), transparent 60%),
    linear-gradient(160deg, #16255c 0%, #24398f 45%, #4f7df3 100%);
  color: #fff;
}

.login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 80%, rgba(255, 255, 255, .35) 1px, transparent 1px),
    radial-gradient(1px 1px at 40% 92%, rgba(255, 255, 255, .25) 1px, transparent 1px),
    radial-gradient(1px 1px at 60% 85%, rgba(255, 255, 255, .3) 1px, transparent 1px),
    radial-gradient(1px 1px at 80% 95%, rgba(255, 255, 255, .2) 1px, transparent 1px),
    radial-gradient(1px 1px at 10% 65%, rgba(255, 255, 255, .2) 1px, transparent 1px);
  background-size: 220px 220px;
  opacity: .6;
  pointer-events: none;
}

.login-brand-inner {
  position: relative;
  max-width: 460px;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.brand-logo-erp {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .5px;
}

.brand-logo-now {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 2px 12px;
  border: 2px solid #fff;
  border-radius: 8px;
}

.brand-logo-tag {
  flex-basis: 100%;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  color: #7bdc8f;
}

.brand-title {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 12px;
}

.brand-title em {
  font-style: normal;
  color: #7bdc8f;
}

.brand-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, .78);
  margin: 0 0 40px;
  max-width: 360px;
}

.brand-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon--a { background: rgba(79, 125, 243, .55); color: #fff; }
.feature-icon--b { background: rgba(123, 220, 143, .22); color: #7bdc8f; }
.feature-icon--c { background: rgba(255, 255, 255, .15); color: #fff; }

.feature-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.feature-desc {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
  margin-top: 2px;
  line-height: 1.45;
}

/* ---------- Painel do formulário ---------- */
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 20px 40px rgba(31, 41, 55, .06);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-heading {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
}

.login-subheading {
  margin: -10px 0 6px;
  font-size: 14px;
  color: #6b7280;
  text-align: center;
}

/* Inputs com ícone */
.input-icon-group {
  position: relative;
  width: 100%;
}

.input-icon-group input {
  width: 100%;
  height: 42px;
  padding: 0 40px 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #1f2937;
  outline: none;
  transition: border-color .15s;
}

.input-icon-group input::placeholder {
  color: #9ca3af;
}

.input-icon-group input:focus {
  border-color: #4f7df3;
}

.input-icon {
  position: absolute;
  right: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  display: inline-flex;
}

.input-icon-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.input-icon-btn:hover {
  color: #4f7df3;
}

/* Linha: manter conectado / esqueci senha */
.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -4px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
  cursor: pointer;
}

.checkbox input {
  width: 15px;
  height: 15px;
  accent-color: #4f7df3;
  cursor: pointer;
}

.login-link {
  font-size: 13px;
  font-weight: 500;
  color: #4f7df3;
  text-decoration: none;
}

.login-link:hover {
  text-decoration: underline;
}

/* Captcha (placeholder visual) */
.captcha {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  padding: 12px 14px;
  cursor: pointer;
}

.captcha input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.captcha-check {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1px solid #c7d2fe;
  border-radius: 4px;
  background: #fff;
  position: relative;
}

.captcha input:checked + .captcha-check {
  background: #4f7df3;
  border-color: #4f7df3;
}

.captcha input:checked + .captcha-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.captcha-text {
  flex: 1;
  font-size: 13px;
  color: #374151;
}

.captcha-badge {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4f7df3;
}

.captcha-fine {
  font-size: 9px;
  line-height: 1.3;
  color: #9ca3af;
  text-align: left;
}

/* Botão principal */
.btn-login {
  width: 100%;
  height: 44px;
  font-size: 15px;
  margin-top: 4px;
}

.login-footer {
  margin: 6px 0 0;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  border-top: 1px solid #eef0f4;
  padding-top: 18px;
}

/* ---------- Responsivo ---------- */

@media (max-width: 960px) {
  .login {
    display: block;
  }

  .login-brand {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    padding: 20px;
  }

  .login-card {
    padding: 28px 22px;
  }
}
