* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Rawline", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  font-family: "Rawline", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f8f8f8;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 1200px;
}

.login-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: none;
  overflow: hidden;
}

.login-card.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.login-left {
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
}

.login-left-simple {
  background: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.illustration {
  margin-bottom: 20px;
}

.illustration-text {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  max-width: 300px;
  line-height: 1.5;
}

.login-right {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.login-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.icon-btn {
  background: none;
  border: none;
  color: #1351b4;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.3s;
}

.icon-btn:hover {
  background: #f0f0f0;
}

.login-form-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.login-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.login-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f0f0f0;
  border-radius: 8px;
  margin-bottom: 16px;
  font-weight: 500;
}

.login-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: #666;
  margin-bottom: 24px;
  line-height: 1.5;
}

.login-form {
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 400;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #1351b4;
}

.password-input {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 4px;
}

.btn-continuar,
.btn-entrar {
  width: 100%;
  padding: 14px;
  background: #1351b4;
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-continuar:hover,
.btn-entrar:hover {
  background: #0c3c8c;
}

.cpf-display {
  margin-bottom: 24px;
}

.cpf-display label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.cpf-value {
  font-size: 18px;
  font-weight: 500;
  color: #1351b4;
}

.forgot-password {
  display: block;
  text-align: center;
  color: #1351b4;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.forgot-password:hover {
  text-decoration: underline;
}

.form-actions {
  display: flex;
  gap: 12px;
}

.btn-cancelar {
  flex: 1;
  padding: 14px;
  background: white;
  color: #1351b4;
  border: 2px solid #1351b4;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-cancelar:hover {
  background: #f0f0f0;
}

.btn-entrar {
  flex: 1;
}

.other-options {
  margin-bottom: 24px;
}

.other-options p {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 12px;
}

.option-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 8px;
  text-align: left;
}

.option-btn:hover {
  background: #f0f0f0;
  border-color: #1351b4;
}

.badge-new {
  margin-left: auto;
  padding: 4px 8px;
  background: #168821;
  color: white;
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
}

.help-section {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
}

.help-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1351b4;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

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

.footer-links {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  color: #666;
}

.footer-links a {
  color: #1351b4;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Modal Dispositivo Seguro */
.modal-dispositivo {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-dispositivo-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 40px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-dispositivo-icon {
  margin-bottom: 20px;
}

.modal-dispositivo-title {
  font-size: 24px;
  font-weight: 600;
  color: #168821;
  margin-bottom: 16px;
}

.modal-dispositivo-text {
  font-size: 16px;
  font-weight: 400;
  color: #666;
  line-height: 1.5;
  margin-bottom: 24px;
}

.btn-dispositivo {
  width: 100%;
  padding: 14px;
  background: #168821;
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-dispositivo:hover {
  background: #0f6618;
}

@media (max-width: 968px) {
  .login-card.active {
    grid-template-columns: 1fr;
  }

  .login-left,
  .login-left-simple {
    display: none;
  }

  .login-right {
    padding: 30px 20px;
  }

  .login-header {
    margin-bottom: 30px;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-cancelar,
  .btn-entrar {
    width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .login-right {
    padding: 20px 15px;
  }

  .login-title {
    font-size: 18px;
  }

  .modal-dispositivo-content {
    padding: 30px 20px;
    margin: 20% auto;
  }

  .modal-dispositivo-title {
    font-size: 20px;
  }

  .option-btn {
    font-size: 13px;
    padding: 10px 12px;
  }

  .badge-new {
    font-size: 9px;
    padding: 3px 6px;
  }
}
