/* ============================================================
   app-tagme — CSS Customizado
   Design: split-screen desktop / single-column mobile
   Paleta: laranja (#FF5A00) + verde-escuro (#294F4E)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* ── Reset & base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout raiz: split-screen ── */
.tagme-root {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ── Painel esquerdo (hero) ── */
.tagme-hero {
  flex: 0 0 45%;
  background-color: #294F4E;
  display: flex;
  flex-direction: column;
  padding: 40px 48px;
  position: relative;
  overflow: hidden;
}

.tagme-hero__logo {
  display: block;
  width: 110px;
  height: auto;
}

.tagme-hero__content {
  margin-top: auto;
  margin-bottom: auto;
  padding-top: 48px;
}

.tagme-hero__title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 12px;
}

.tagme-hero__subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  line-height: 1.5;
}



/* ── Painel direito (formulário) ── */
.tagme-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background-color: #ffffff;
}

.tagme-card {
  width: 100%;
  max-width: 420px;
}

/* ── Título do formulário ── */
.tagme-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #294F4E;
  margin-bottom: 28px;
}

/* ── Grupos de campo ── */
.tagme-field {
  margin-bottom: 20px;
}

.tagme-field__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

/* Wrapper do input com ícone */
.tagme-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.tagme-input-wrap__icon {
  position: absolute;
  left: 14px;
  display: flex;
  align-items: center;
  pointer-events: none;
  color: #9CA3AF;
}

.tagme-input-wrap__icon svg {
  width: 18px;
  height: 18px;
}

.tagme-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid #D1D5DB;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #1a1a1a;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.tagme-input::placeholder {
  color: #9CA3AF;
}

.tagme-input:focus {
  border-color: #FF5A00;
  box-shadow: 0 0 0 3px rgba(255, 90, 0, 0.12);
}

/* Botão de mostrar/ocultar senha */
.tagme-password-toggle {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #9CA3AF;
  transition: color 0.2s ease;
  z-index: 10;
}

.tagme-password-toggle:hover {
  color: #FF5A00;
}

.tagme-password-toggle svg {
  width: 20px;
  height: 20px;
}

/* Ajuste no padding do input para não sobrepor o ícone da direita */
.tagme-input--with-toggle {
  padding-right: 46px;
}

/* Erro no campo */
.tagme-input--error {
  border-color: #EF4444;
}

.tagme-input--error:focus {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.tagme-field__error {
  font-size: 0.78rem;
  color: #EF4444;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Linha: Lembrar-me + Esqueceu a senha ── */
.tagme-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.tagme-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.tagme-remember__checkbox {
  width: 16px;
  height: 16px;
  border: 1.5px solid #D1D5DB;
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.tagme-remember__checkbox:checked {
  background: #FF5A00;
  border-color: #FF5A00;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.tagme-remember__label {
  font-size: 0.85rem;
  color: #374151;
}

.tagme-forgot-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: #FF5A00;
  text-decoration: none;
  transition: color 0.15s;
}

.tagme-forgot-link:hover {
  color: #CC4700;
  text-decoration: underline;
}

/* ── Botão principal ── */
.tagme-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 50px;  /* pill shape */
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  letter-spacing: 0.01em;
}

/* Estado ativo (campos preenchidos) */
.tagme-btn--active {
  background-color: #FF5A00;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 90, 0, 0.35);
}

.tagme-btn--active:hover {
  background-color: #E05000;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 90, 0, 0.4);
}

.tagme-btn--active:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 90, 0, 0.3);
}

/* Estado inativo (campos vazios) */
.tagme-btn--inactive {
  background-color: #D1D5DB;
  color: #6B7280;
  cursor: not-allowed;
  box-shadow: none;
}

/* ── Rodapé de segurança ── */
.tagme-security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.78rem;
  color: #9CA3AF;
}

.tagme-security-badge svg {
  width: 16px;
  height: 16px;
  color: #9CA3AF;
}

/* ── Mensagens de alerta globais ── */
.tagme-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  line-height: 1.45;
}

.tagme-alert--error {
  background-color: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.tagme-alert--warning {
  background-color: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.tagme-alert--info {
  background-color: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

.tagme-alert--success {
  background-color: #F0FDF4;
  color: #166534;
  border: 1px solid #BBF7D0;
}

/* ══════════════════════════════════════
   MOBILE — tela única vertical
   (hero compacto no topo + form abaixo)
   ══════════════════════════════════════ */
@media (max-width: 767px) {
  .tagme-root {
    flex-direction: column;
  }

  /* Hero vira banner compacto no topo */
  .tagme-hero {
    flex: none;
    padding: 28px 24px 36px;
  }

  .tagme-hero__logo {
    width: 90px;
  }

  .tagme-hero__content {
    margin-top: 24px;
    padding-top: 0;
  }

  .tagme-hero__title {
    font-size: 1.5rem;
  }

  /* Painel de formulário cresce */
  .tagme-panel {
    padding: 32px 24px 40px;
    align-items: flex-start;
  }

  .tagme-card {
    max-width: 100%;
  }

  .tagme-card__title {
    font-size: 1.2rem;
  }
}

/* ── Utilitário: esconde elemento ── */
.tagme-hidden {
  display: none !important;
}

/* ── Estado de Loading no botão ── */
.tagme-btn--loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    cursor: wait;
}

.tagme-btn--loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: tagme-spin 0.8s linear infinite;
}

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