body {
  font-family: "Inter", "Roboto", sans-serif;
  background: linear-gradient(135deg, #c71f25 0%, #f28b90 100%);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  position: relative;
}

/* Crop marks decorativos */
.crop-mark {
  position: absolute;
  width: 50px;
  height: 50px;
  z-index: 1000;
  pointer-events: none;
}

.crop-mark:before,
.crop-mark:after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  border-radius: 1px;
}

.crop-mark.top-right {
  top: 30px;
  right: 30px;
}

.crop-mark.top-right:before {
  top: 0;
  right: 0;
  width: 25px;
  height: 4px;
}

.crop-mark.top-right:after {
  top: 0;
  right: 0;
  width: 4px;
  height: 25px;
}

.crop-mark.bottom-left {
  bottom: 30px;
  left: 30px;
}

.crop-mark.bottom-left:before {
  bottom: 0;
  left: 0;
  width: 25px;
  height: 4px;
}

.crop-mark.bottom-left:after {
  bottom: 0;
  left: 0;
  width: 4px;
  height: 25px;
}

/* Hover effect para os crop marks */
.crop-mark:hover:before,
.crop-mark:hover:after {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

/* Responsivo para crop marks */
@media (max-width: 768px) {
  .crop-mark {
    width: 40px;
    height: 40px;
  }
  
  .crop-mark.top-right {
    top: 20px;
    right: 20px;
  }
  
  .crop-mark.bottom-left {
    bottom: 20px;
    left: 20px;
  }
  
  .crop-mark.top-right:before,
  .crop-mark.bottom-left:before {
    width: 18px;
    height: 3px;
  }
  
  .crop-mark.top-right:after,
  .crop-mark.bottom-left:after {
    width: 3px;
    height: 18px;
  }
}

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

/* --- Hero (slogan) minimalista --- */
.slogan-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 20px 0 10px;
  max-width: 500px;
  position: relative;
}

.slogan-content { text-align: center; }

/* Frame do slogan com cantos */
.hero-frame {
  position: relative;
  display: inline-block;
  padding: 28px 42px 34px 48px; /* espaço interno para afastar texto dos cantos */
}
.hero-frame .hero-title { margin: 0; }

.corner {
  position: absolute;
  width: 44px; /* comprimento da perna */
  height: 44px;
  pointer-events: none;
}
.corner:before,
.corner:after {
  content: '';
  position: absolute;
  background: #fff;
  display: block;
}
/* canto superior direito */
.corner-tr { top: 0; right: 0; }
.corner-tr:before { /* horizontal */
  top: 0; right: 0; height: 4px; width: 34px;
}
.corner-tr:after { /* vertical */
  top: 0; right: 0; width: 4px; height: 34px;
}
/* canto inferior esquerdo */
.corner-bl { bottom: 0; left: 0; }
.corner-bl:before { /* horizontal */
  bottom: 0; left: 0; height: 4px; width: 34px;
}
.corner-bl:after { /* vertical */
  bottom: 0; left: 0; width: 4px; height: 34px;
}

/* Responsivo: reduzir quando tela pequena */
@media (max-width: 768px){
  .hero-frame { padding: 22px 32px 26px 36px; }
  .corner { width: 36px; height: 36px; }
  .corner-tr:before, .corner-bl:before { width: 26px; }
  .corner-tr:after, .corner-bl:after { height: 26px; }
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 12px;
  color: #2d3748;
  letter-spacing: 1px;
  font-style: italic;
}


/* Versão branca do destaque do slogan */
.hero-accent { color: rgba(255,255,255,.82); font-weight: 600; }
.hero-strong { color: rgba(255,255,255,.94); font-weight: 700; }

.headline-underline {
  width: 94px;
  height: 3px;
  background: linear-gradient(90deg,rgba(255,255,255,.8),rgba(255,255,255,.35));
  border-radius: 2px;
  /* Aumentado para descer o risco em relação ao título */
  margin: 26px auto 60px; /* aumentado bottom ainda mais */
}

.hero-sub {
  font-size: 1.02rem;
  color: rgba(255,255,255,.70);
  margin: 0 auto 26px;
  font-weight: 400;
  max-width: 460px;
}

/* Ícones de apoio abaixo do slogan */
.hero-features {
  display: flex;
  gap: 0px; /* reduzido ligeiramente para aproximar mais */
  /* Aumentado para descer o bloco de ícones em relação ao underline */
  margin-top: 40px; /* aumentado para mais espaço */
  margin-bottom: 4px;
  justify-content: center;
  align-items: center;
}

.hero-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}

.hero-feature i {
  font-size: 1.9rem; /* reduzido ligeiramente */
  color: rgba(255,255,255,.70);
  margin-bottom: 2px; /* reduzido ainda mais para aproximar ícone do texto */
  transition: transform .25s ease, color .25s ease, text-shadow .25s ease;
}

.hero-feature span {
  font-size: 0.70rem;
  letter-spacing: 1.4px;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(20,35,44,.55); /* tom derivado de #14232c com transparência para ficar "mais baixo" */
  transition: color .25s ease;
}

.hero-feature:hover span {
  color: rgba(20,35,44,.85);
}

.hero-feature:hover i {
  color: rgba(255,255,255,.95);
  transform: translateY(-4px);
  text-shadow: 0 4px 14px rgba(0,0,0,.35);
}

/* Operadores (+ e =) */
.operator {
  font-size: 1.7rem;
  font-weight: 700;
  color: rgba(255,255,255,.80);
  margin: 0 6px;
  align-self: center;
}

/* Cores específicas para ícones */
.hero-features .hero-feature:nth-child(1) i,
.hero-features .hero-feature:nth-child(1) span,
.hero-features .hero-feature:nth-child(3) i,
.hero-features .hero-feature:nth-child(3) span,
.hero-features .hero-feature:nth-child(5) i,
.hero-features .hero-feature:nth-child(5) span {
  color: rgba(20,35,44,.9); /* ainda mais escuro para Pessoas, Negócios, Tecnologia */
}

.hero-features .hero-feature:nth-child(7) i,
.hero-features .hero-feature:nth-child(7) span {
  color: rgba(255,255,255,.92); /* branco para Resultados */
}

/* Ajuste: título mantém contraste escuro; destaques agora brancos */
/* Mantém título levemente mais escuro para contraste */
.hero-title { color: #14232c; }
.hero-accent, .hero-strong { color: rgba(255,255,255,.92); }
/* underline já redefinida acima para gradiente claro */

/* (Removidas animações anteriores: bounce, glow, fadeInUp, dotPulse) */
.login-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 40px;
  width: 100%;
  max-width: 400px;
}

p {
  color: #6c757d;
  font-weight: 300; }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: "Inter", "Roboto", sans-serif; }

a {
  -webkit-transition: .3s all ease;
  -o-transition: .3s all ease;
  transition: .3s all ease; }
  a:hover {
    text-decoration: none !important; }

.nextbe-logo {
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.form-control {
  border: 1px solid #e9ecef;
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  height: 54px;
  background: #fff;
  transition: all 0.3s ease;
}

.form-control:active, 
.form-control:focus {
  outline: none;
  border-color: #c41e3a;
  -webkit-box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.15);
  box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.15);
}

.btn {
  height: 54px;
  padding-left: 30px;
  padding-right: 30px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #c71f25;
  border: none;
  color: #fff;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: #a5181f;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(199, 31, 37, 0.35);
}

.forgot-pass {
  position: relative;
  top: 2px;
  font-size: 14px;
  color: #c41e3a !important;
  transition: color 0.3s ease;
}

.forgot-pass:hover {
  color: #b01729 !important;
  text-decoration: none !important;
}

.control {
  display: block;
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  cursor: pointer;
  font-size: 14px;
}

.control .caption {
  position: relative;
  top: .2rem;
  color: #6c757d;
}

.control input {
  position: absolute;
  z-index: -1;
  opacity: 0;
}

.control__indicator {
  position: absolute;
  top: 2px;
  left: 0;
  height: 20px;
  width: 20px;
  background: #e9ecef;
  border-radius: 4px;
}

/* REMOVIDO: Estilo para .control--radio não é utilizado em nenhum HTML atual. */

.control:hover input ~ .control__indicator,
.control input:focus ~ .control__indicator {
  background: #dee2e6;
}

.control input:checked ~ .control__indicator {
  background: linear-gradient(135deg, #c41e3a 0%, #d73502 100%);
}

.control:hover input:not([disabled]):checked ~ .control__indicator,
.control input:checked:focus ~ .control__indicator {
  background: linear-gradient(135deg, #b01729 0%, #c41e3a 100%);
}

.control input:disabled ~ .control__indicator {
  background: #e9ecef;
  opacity: 0.6;
  pointer-events: none;
}

.control__indicator:after {
  font-family: 'icomoon';
  content: '\e5ca';
  position: absolute;
  display: none;
  font-size: 16px;
  -webkit-transition: .3s all ease;
  -o-transition: .3s all ease;
  transition: .3s all ease; }

.control input:checked ~ .control__indicator:after {
  display: block;
  color: #fff; }

.control--checkbox .control__indicator:after {
  top: 50%;
  left: 50%;
  margin-top: -1px;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%); }

.control--checkbox input:disabled ~ .control__indicator:after {
  border-color: #7b7b7b; }

.control--checkbox input:disabled:checked ~ .control__indicator {
  background-color: #6c757d;
  opacity: .4;
}

/* Responsividade */
@media (max-width: 1024px) {
  .login-container { flex-direction: column; }
  .slogan-section { margin-bottom: 32px; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.15rem; }
  .hero-sub { font-size: .95rem; }
}

@media (max-width: 576px) {
  .login-card {
    padding: 25px 15px;
  }
  
  .nextbe-logo {
    max-width: 120px;
  }
  
  .form-control {
    height: 48px;
  }
  
  .btn {
    height: 48px;
  }
}

/* Estilos para página de recuperação de senha */
.recovery-title {
  color: #2d3748;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.recovery-subtitle {
  color: #6c757d;
  font-size: 14px;
  margin-bottom: 0;
  line-height: 1.4;
}

/* Ocultar texto dinâmico NEXTBE SISTEMAS FOOD */
#nomeRevenda {
  display: none !important;
}

/* Personalização dos Toasts (Alerts) - Forçar fundo branco */
.toast-container {
  z-index: 9999;
}

.toast-container .toast {
  background-color: #fff !important;
  background-image: none !important;
  border: none !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
  color: #495057 !important;
  font-family: "Inter", "Roboto", sans-serif !important;
  margin-bottom: 16px;
  min-width: 380px;
  max-width: 450px;
  padding: 0 !important;
  position: relative;
  overflow: hidden;
}

.toast-container .toast:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: #c71f25;
}

.toast-container .toast.toast-success:before {
  background: #28a745;
}

.toast-container .toast.toast-warning:before {
  background: #ffc107;
}

.toast-container .toast.toast-error:before {
  background: #dc3545;
}

.toast-container .toast-message {
  padding: 22px 24px 22px 54px !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
  color: #495057 !important;
  background: transparent !important;
  min-width: 380px;
  max-width: 480px;
  position: relative;
}

.toast-container .toast-message i.fa {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  margin-right: 0;
  z-index: 2;
  min-width: 380px;
  max-width: 480px;
  position: relative;
}

.toast-container .toast-message i.fa {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  margin-right: 0;
  z-index: 2;
}

.toast-container .toast-title {
  font-weight: 600 !important;
  font-size: 16px !important;
  margin-bottom: 6px !important;
  color: #2d3748 !important;
  background: transparent !important;
}

/* Cores específicas para cada tipo de toast */
.toast-container .toast.toast-success .toast-title {
  color: #155724 !important;
}

.toast-container .toast.toast-success .toast-message {
  color: #155724 !important;
}

.toast-container .toast.toast-error .toast-title {
  color: #721c24 !important;
}

.toast-container .toast.toast-error .toast-message {
  color: #721c24 !important;
}

.toast-container .toast.toast-warning .toast-title {
  color: #856404 !important;
}

.toast-container .toast.toast-warning .toast-message {
  color: #856404 !important;
}

.toast-container .toast-close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none !important;
  border: none !important;
  color: #6c757d !important;
  cursor: pointer;
  font-size: 20px;
  font-weight: 300;
  height: 30px;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  opacity: 1 !important;
}

.toast-container .toast-close-button:hover {
  background-color: #f8f9fa !important;
  color: #495057 !important;
}

/* Forçar cor do X para todos os tipos de toast */
.toast-container .toast .toast-close-button,
#toast-container .toast-close-button,
#toast-container > div .toast-close-button,
#toast-container .toast .close,
#toast-container > div .close,
.toast .close {
  color: #6c757d !important;
  opacity: 1 !important;
  background: none !important;
  border: none !important;
  text-shadow: none !important;
  font-weight: 300 !important;
}

/* Hover para o botão de fechar */
#toast-container .toast-close-button:hover,
#toast-container > div .toast-close-button:hover,
#toast-container .toast .close:hover,
#toast-container > div .close:hover,
.toast .close:hover {
  color: #495057 !important;
  background-color: #f8f9fa !important;
  opacity: 1 !important;
}

.toast-container .toast-progress {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  height: 4px !important;
  background: rgba(199, 31, 37, 0.2) !important;
  border-radius: 0 0 16px 16px !important;
}

.toast-container .toast.toast-success .toast-progress {
  background: rgba(40, 167, 69, 0.2) !important;
}

.toast-container .toast.toast-warning .toast-progress {
  background: rgba(255, 193, 7, 0.2) !important;
}

.toast-container .toast.toast-error .toast-progress {
  background: rgba(220, 53, 69, 0.2) !important;
}

/* Animações suaves para os toasts */
@keyframes toastFadeInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastFadeOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.toast-container.toast-top-right .toast {
  animation: toastFadeInRight 0.4s ease-out;
}

.toast-container.toast-top-right .toast.toast-closing {
  animation: toastFadeOutRight 0.3s ease-in;
}

/* Estilos adicionais para garantir fundo branco e texto visível */
#toast-container > div {
  background-color: #fff !important;
  background-image: none !important;
  color: #495057 !important;
}

#toast-container > .toast-success {
  background-color: #fff !important;
  color: #155724 !important;
}

#toast-container > .toast-error {
  background-color: #fff !important;
  color: #721c24 !important;
}

#toast-container > .toast-info {
  background-color: #fff !important;
  color: #495057 !important;
}

#toast-container > .toast-warning {
  background-color: #fff !important;
  color: #856404 !important;
}

/* Força absoluta para o ícone de fechar aparecer */
#toast-container * {
  text-shadow: none !important;
}

#toast-container button[type="button"],
#toast-container .toast-close-button,
#toast-container .close {
  color: #6c757d !important;
  opacity: 1 !important;
  background: transparent !important;
  border: none !important;
  text-shadow: none !important;
  font-size: 20px !important;
  line-height: 1 !important;
}

/* Estilos para o Modal de Seleção de Empresa */
#ChoiceCompany .modal-dialog {
  max-width: 480px;
  margin: 1.75rem auto;
}

#ChoiceCompany .modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

#ChoiceCompany .modal-header {
  background: linear-gradient(135deg, #c71f25 0%, #e02f35 100%);
  border: none;
  padding: 24px 28px;
  position: relative;
}

#ChoiceCompany .modal-header .modal-title {
  color: #fff !important;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

#ChoiceCompany .modal-header .modal-title i {
  font-size: 1.1rem;
  opacity: 0.9;
}

#ChoiceCompany .modal-header .close {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: none;
  opacity: 1;
  font-size: 24px;
  font-weight: 300;
  transition: color 0.2s ease;
}

#ChoiceCompany .modal-header .close:hover {
  color: #fff !important;
  opacity: 1;
}

#ChoiceCompany .modal-body {
  padding: 32px 28px;
  background: #fff;
}

#ChoiceCompany .modal-body p {
  color: #495057;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 24px;
}

#ChoiceCompany .modal-body .form-group {
  margin-bottom: 0;
}

#ChoiceCompany .modal-body label {
  color: #2d3748;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 8px;
}

#ChoiceCompany .modal-body .form-control {
  border: 1.5px solid #e9ecef;
  border-radius: 8px;
  height: 50px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: #fff;
}

#ChoiceCompany .modal-body .form-control:focus {
  border-color: #c71f25;
  box-shadow: 0 0 0 0.2rem rgba(199, 31, 37, 0.12);
  outline: none;
}

#ChoiceCompany .modal-footer {
  background: #f8f9fa;
  border: none;
  padding: 20px 28px;
  gap: 12px;
}

#ChoiceCompany .modal-footer .btn {
  height: 44px;
  font-weight: 500;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
}

/* Botão Cancelar - estilo neutro */
#ChoiceCompany .modal-footer .btn-default {
  background: #6c757d;
  border: 1px solid #6c757d;
  color: #fff;
}

#ChoiceCompany .modal-footer .btn-default:hover {
  background: #5a6268;
  border-color: #5a6268;
  color: #fff;
  transform: translateY(-1px);
}

/* Botão Acessar - seguindo o tema vermelho da aplicação */
#ChoiceCompany .modal-footer .btn-success {
  background: linear-gradient(135deg, #c71f25 0%, #e02f35 100%);
  border: none;
  color: #fff;
}

#ChoiceCompany .modal-footer .btn-success:hover {
  background: linear-gradient(135deg, #b01729 0%, #c71f25 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(199, 31, 37, 0.3);
}

#ChoiceCompany .modal-footer .btn-success:focus {
  background: linear-gradient(135deg, #c71f25 0%, #e02f35 100%);
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(199, 31, 37, 0.25);
}

/* Animação suave para o modal */
#ChoiceCompany.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translate(0, -50px);
}

#ChoiceCompany.show .modal-dialog {
  transform: none;
}

/* Estilos para o Modal de Troca de Sessão */
#ChangeSession .modal-dialog {
  max-width: 480px;
}

#ChangeSession .modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

#ChangeSession .modal-header {
  background: linear-gradient(135deg, #c71f25 0%, #e02f35 100%);
  border: none;
  padding: 24px 28px;
}

#ChangeSession .modal-header .modal-title {
  color: #fff !important;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

#ChangeSession .modal-header .close {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: none;
  opacity: 1;
  font-size: 24px;
  font-weight: 300;
  transition: color 0.2s ease;
}

#ChangeSession .modal-header .close:hover {
  color: #fff !important;
  opacity: 1;
}

#ChangeSession .modal-body {
  padding: 32px 28px;
  background: #fff;
}

#ChangeSession .modal-body p {
  color: #495057;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

#ChangeSession .modal-footer {
  background: #f8f9fa;
  border: none;
  padding: 20px 28px;
  gap: 12px;
}

#ChangeSession .modal-footer .btn {
  height: 44px;
  font-weight: 500;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
}

#ChangeSession .modal-footer .btn-default {
  background: #6c757d;
  border: 1px solid #6c757d;
  color: #fff;
}

#ChangeSession .modal-footer .btn-default:hover {
  background: #5a6268;
  border-color: #5a6268;
  color: #fff;
  transform: translateY(-1px);
}

#ChangeSession .modal-footer .btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
  border: none;
  color: #fff;
}

#ChangeSession .modal-footer .btn-danger:hover {
  background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Ocultar slogan no mobile para focar no login */
@media (max-width: 768px) {
  .slogan-section {
    display: none;
  }
}
